|
-
August 13th, 2010, 07:39 PM
#1
Show information when mouse pointed
I've made some program which has a few buttons/checkboxes. I wish to show the information of what they pointed at after a certain period of pointing at the control. This maybe an easy stuff but I've been googling for few hours with no result.
I've included an example for the question.

As you can see, the pointer shows 'Microsoft Visual Studio 2010' when I point my mouse pointer on it. I wish to make into my program as well.
Appreciate any help/comment. Thanks in advance.
-
August 13th, 2010, 08:40 PM
#2
Re: Show information when mouse pointed
It's called a tool tip. How to include it in your program depends on the framework your program is build on. Lots of explanation to find on internet about it though (once you know the term ).
Cheers, D Drmmr
Please put [code][/code] tags around your code to preserve indentation and make it more readable.
As long as man ascribes to himself what is merely a posibility, he will not work for the attainment of it. - P. D. Ouspensky
-
August 13th, 2010, 09:01 PM
#3
Re: Show information when mouse pointed
If I get you right that you want to add tool tips to controls on a form, this is how I did it in a quick experiment:
In the toolbox, you'll find a control named ToolTip in the category General Controls. Add it to the tray of your form in the Forms editor. It will get a default name like toolTip1, that you can keep for now. Once you have done that, the controls on your form (and the form itself) will have an extra property called "ToolTip on toolTip1" in the "Others" category. This is a text property where you can enter the text that you want to get displayed as a tool tip for that control. That's all. 
Some of the exact terms may vary in your environment. I'm using a german version of VC++ 2010 Express and tried to translate everything (that needs to) back to english as good as possible.
HTH
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
|