Results 1 to 7 of 7

Thread: Mouse Event

  1. #1
    shuj66
    Guest

    Question Mouse Event

    Hi,

    I have a toolbox on my form with various icons for say save,open etc.

    When I place my mouse on any of these icons, how do I get it to say what it does ie save, open etc

    Thanks.

  2. #2
    PowerPoster jdc2000's Avatar
    Join Date
    Oct 2001
    Location
    Idaho Falls, Idaho USA
    Posts
    2,526
    Set the ToolTipText property of the object on the form to whatever you want to pop when the user places the mouse pointer on the object.

  3. #3
    shuj66
    Guest
    thanx. That worked.

  4. #4
    shuj66
    Guest
    Hi,

    Concerning the same issue, how do I make it work such that when I place the mouse over any of the icons on my toolbar, it will say what it does.

    Thanks.

  5. #5
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333
    You can set the ToolTipText property for each button on your toolbar using the Toolbars Property sheet. Right Mouse Click on the toolbar control, and click properties (Don't click on the control and click on the properties icon on your IDE. It will give you a standard property sheet. You want the property sheet specific to the toolbar, and the right mouse click will give you that.)

  6. #6
    shuj66
    Guest
    Thanks Hack.

    That did it. And here I was trying to code it.

  7. #7
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333
    As an FYI, the property sheet that will give you the most flexibility when using the controls packaged within the Windows Common Controls Ocx will be the property sheet you get after right mouse clicking on the control, i.e., Toolbar, StatusPanel, TreeView, ListView, etc.

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