CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    May 2010
    Posts
    13

    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.

  2. #2
    Join Date
    Jul 2005
    Location
    Netherlands
    Posts
    2,042

    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

  3. #3
    Join Date
    Jun 2010
    Location
    Germany
    Posts
    2,675

    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
  •  





Click Here to Expand Forum to Full Width

Featured