|
-
Sep 19th, 2001, 08:46 PM
#1
Thread Starter
Lively Member
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.
-
Sep 21st, 2001, 08:32 AM
#2
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
-
Sep 21st, 2001, 03:57 PM
#3
Fanatic Member
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 
-
Sep 22nd, 2001, 05:44 AM
#4
Thread Starter
Lively Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|