|
-
Mar 20th, 2008, 06:32 AM
#1
Thread Starter
Lively Member
[RESOLVED] Balloon ToolTip Click Help
Pretty basic question, but i cant seem to find an answer...
What is the code to detect when the user clicks on the ToolTip.
(What i am trying to do is change a registry value when the user clicks on the tooltip so that my program knows not to show the tooltip again)
Thanks
-
Mar 20th, 2008, 06:40 AM
#2
Re: Balloon ToolTip Click Help
 Originally Posted by feneck
Pretty basic question, but i cant seem to find an answer...
It is far from a basic question and I'm not surprised you haven't found an answer. I've never, ever seen any examples of this.
I know that with standard VB tooltips you won't be able to get any thing out of clicking them, but there could be, somewhere out there, a third party tooltip control that offers this feature.
I tried Google before posting this an came up with the same thing you did......zilch.
-
Mar 20th, 2008, 06:44 AM
#3
Thread Starter
Lively Member
Re: Balloon ToolTip Click Help
Darn, it has to be possible though? Other programs have like a tooltip that says "<name> is still running, Click here to not show this reminder again"????
anyone else have any ideas? or maybe a work around, lol?
-
Mar 20th, 2008, 09:33 AM
#4
Re: Balloon ToolTip Click Help
Tool tips? Not possible that I know of; at least no examples I have ever seen & would require lots and lots of trial & error to accomplish
Balloons?
It is very possible and requires subclassing. Some extra messages are even available for XP & above. Here is a link that has sample code you can play with. There are several example links, find the one that suits your needs.
-
Mar 20th, 2008, 06:11 PM
#5
Thread Starter
Lively Member
Re: Balloon ToolTip Click Help
THANKYOU so much LaVolpe!!! I got it... I took some of the code from that module and edited the one I had, its all good now.
If anyone would like the code or wants to know how i did it, just ask...
-
Apr 22nd, 2009, 05:58 AM
#6
Thread Starter
Lively Member
-
Apr 22nd, 2009, 08:15 AM
#7
Re: [RESOLVED] Balloon ToolTip Click Help
 Originally Posted by feneck
I've had some requests for the code I have used.
So today I slapped up a demo for everyone.
Enjoy

Just a quick look I see theres a few things you can improve.
1, Remove the ballon/tray on form unload event, Not from a button, if you (X) exit the program the tray is still there!
2. Never use the "END" command to exit a program!
3. The Mouse_move code is using x/Screen.TwipsPerPixelX, so it only works correctly if the forms scalemode = Twips.
-
Apr 22nd, 2009, 08:25 AM
#8
Thread Starter
Lively Member
Re: [RESOLVED] Balloon ToolTip Click Help
 Originally Posted by Edgemeal
Just a quick look I see theres a few things you can improve.
1, Remove the ballon/tray on form unload event, Not from a button, if you (X) exit the program the tray is still there!
2. Never use the "END" command to exit a program!
3. The Mouse_move code is using x/Screen.TwipsPerPixelX, so it only works correctly if the forms scalemode = Twips.
This wasn't really designed to be perfect. I already knew of 1 & 2, as for 3, I didn't even think of.
Thanks for the help. I probably wont get around to fixing it any time soon though.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|