Click to See Complete Forum and Search --> : Show information when mouse pointed


nerrazzuri
August 13th, 2010, 07:39 PM
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.

http://img96.imageshack.us/img96/4338/questionw.png

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.

D_Drmmr
August 13th, 2010, 08:40 PM
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 ;)).

Eri523
August 13th, 2010, 09:01 PM
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. :cool:

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