473,382 Members | 1,745 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Appbar and focus issues

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.
Aug 11 '06 #1
1 1205
TyBreaker wrote:
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.
Aug 11 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: gkelly | last post by:
I have an AppBar that works fine, except for one problem. It's stealing focus -The AppBar is written in C# -Access to it is via a COM object -Main app is a C++ app. -Button on app will use...
7
by: Dave Booker | last post by:
I am using a WebBrowser object in my .NET 2.0 application, but it is not shown to the user. Every time a timer event triggers it to perform a m_WebBrowser.Navigate() I get that classic IE 'click'...
1
by: TyBreaker | last post by:
I have a simple form with a toolstrip on it and some toolstrip buttons. Tooltips work fine. But then I use the ShAppBarMessage API call to register the form as an Application Desktop Toolbar. ...
5
by: squishy | last post by:
I want to make an app that can dock to the sides of the desktop and offer auto-hiding. From what I have read, this is called an appbar. Does anyone have any code examples of vb.net created...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.