Results 1 to 4 of 4

Thread: A Simple Problem... How to Solve it....?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Dec 2000
    Location
    India, Chennai
    Posts
    121

    Question A Simple Problem... How to Solve it....?

    Hi Guys,
    I'm doing a app with some menu, Coolbars, Toolbars and statusbar. I need to give some explanation of the functions in the menus and toolbars when the user moves the mouse over them. I need to show some info like "creates a New document", "opens a existing Document" in the statusbar. I've tried with the MouseMove event in the Toolbar, But the Button parameter returns the Mouse Button Value. How do I check on which Toolbar Button is my mouse on. Also I need to know this in the case of Menus. I want to on which menu item, my mouse is currently on. Depending on that I've to give info in the statusbar. Any help please. Thnx in advance.

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333
    First, it is not a simple problem and second it is not easy. It involves subclassing.

    Check out this link:

    http://www.vbweb.co.uk/show/49/4

  3. #3
    Fanatic Member Kaverin's Avatar
    Join Date
    Oct 2000
    Posts
    930
    For the toolbar, you could just put something in the tooltiptext property of each button. That would eliminate the need for anything complicated. If you wanted to show that description in a status bar though, you'd have to resort to another method to determine which button the mouse was over.
    I'm baaaack...
    VB5 Professional Edition, VC++ 6
    Using a 1 gHz Thunderbird, 256 mb RAM, 40 gb HD system with Win98se

    I feel special because I finally figured out how to loop midis: Post link
    I'm a fanatic too

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Dec 2000
    Location
    India, Chennai
    Posts
    121

    Thumbs down I don't want the ToolTipText...

    Hi Kaverin,
    I don't want the Tool tip Text. But I need some other way of displaying a Description of the Action Performed by the Button in a Statusbar. The MouseMove() Event in the ToolBar Just returns the Mouse Button and Not the Toolbar Button. So a MouseMove() Event in a Toolbar is useless. It does not return the name of the Button like the Toolbar ButtonClick() Event. Is there any other way of displaying a Text when the Mouse is Moved over the Toolbar. Or Just we need to do subclassing like what hack has told. Anyway thnx for ur reply.

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