Appbar and focus issues

T

TyBreaker

I have written an application desktop toolbar (similar to Taskbar in
style) and when I first start it up, it displays fine and has mouse
focus so that when you run your mouse over the buttons, tooltips appear
and a single click on any button works as expected.

But when I click on another application, the toolbar loses focus which I
guess is as expected. However when I move my mouse back over the
toolbar, the tooltips don't appear and the first click of my mouse on a
button doesn't work. Having clicked though, the next click does work
and tooltips also resume working. It appears to be a simple case of the
toolbar being "active".

My question is; how can I make my toolbar behave like the Windows
Taskbar ie always active eg even when I have another application with
focus, running my mouse over the Windows taskbar still shows tooltips
and a single click on a button will action it.
--
______ ___ __
/_ __/_ __/ _ )_______ ___ _/ /_____ ____
/ / / // / _ / __/ -_) _ `/ '_/ -_) __/
/_/ \_, /____/_/ \__/\_,_/_/\_\\__/_/
/___/

There are 10 types of people in this world; those who understand the
binary numbering system and those who don't.

There's no place like 127.0.0.1.

ASCII a silly question, get a silly ANSI.
 
T

TyBreaker

TyBreaker said:
I have written an application desktop toolbar (similar to Taskbar in
style) and when I first start it up, it displays fine and has mouse
focus so that when you run your mouse over the buttons, tooltips appear
and a single click on any button works as expected.

But when I click on another application, the toolbar loses focus which I
guess is as expected. However when I move my mouse back over the
toolbar, the tooltips don't appear and the first click of my mouse on a
button doesn't work. Having clicked though, the next click does work
and tooltips also resume working. It appears to be a simple case of the
toolbar being "active".

My question is; how can I make my toolbar behave like the Windows
Taskbar ie always active eg even when I have another application with
focus, running my mouse over the Windows taskbar still shows tooltips
and a single click on a button will action it.

Solved!

--
______ ___ __
/_ __/_ __/ _ )_______ ___ _/ /_____ ____
/ / / // / _ / __/ -_) _ `/ '_/ -_) __/
/_/ \_, /____/_/ \__/\_,_/_/\_\\__/_/
/___/

There are 10 types of people in this world; those who understand the
binary numbering system and those who don't.

There's no place like 127.0.0.1.

ASCII a silly question, get a silly ANSI.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top