Home
Search
 
What's New
Index
Books
Links
Q & A
Newsletter
Banners
 
Feedback
Tip Jar
 
 
 
 
500MB 27GB Web Hosting - $9.95/Month
 
 
 
 
 
Old Pages
 
Old Index
Site Map
What's New
 
Books
How To
Tips & Tricks
Tutorials
Stories
Performance
Essays
Links
Q & A
New in VB6
Free Stuff
Pictures
 
 
 
TitleDisplay "balloon" help when the mouse is over a button
Keywordsballoon, help, popup
CategoriesMiscellany, Software Engineering
 
By Normand LaBine.

In the button's MouseMove event handler, make a label containing the help visible. Also make a rounded shape control visible to outline the help.

Under the button and extending outside it some distance, put a imgNoTip control. In its MouseMove event handler, hide the balloon.

I would make one change. If you move the mouse quickly enough off of a control that displays a balloon, the imgNoTip control around it may not get a MouseMove event. In that case, the balloon stays visible even after the mouse moves away.

A more reliable method is to start a Timer for some short period (say, 250 milliseconds) when you make the balloon visible. When the Timer fires, it uses API functions to get the mouse's position and see if it is still over the button. If not, it hides the balloon and disables the timer.

 
 
 
Copyright © 1997-2003 Rocky Mountain Computer Consulting, Inc.   All rights reserved.
  Updated