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.
 
Ad

Advertisements

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

Similar Threads

Appbar and Tooltips 1
Disposing - when? 1
ToolTip problem 3
VB.NET Appbar example? 1
Systray Tooltips 1
toolstrip - mouse event for disabled items? 1
Strange Tooltip Problem 1
Lost Tooltip for Command Button 1

Top