|
-
January 31st, 1999, 03:17 AM
#1
How do I map Toolbar Buttons with Menu ?
In Vc++, by using same names I can make use of the same function for a Menu and Toolbar . How do I do it in VB ?
Anand
-
February 1st, 1999, 09:55 AM
#2
Re: How do I map Toolbar Buttons with Menu ?
There is no such facility in VB. What you have to do is create the Event procedures for the menu items you want. Create the same thing for Toolbar buttons also. In toolbar procedure you call the event procedures of Menu.
For example.
Public Sub ToolBar1_Click(....,....)
select case Button.Caption
............
case "New": call mnuFile_New_Click
..............
.........
..........
End Sub
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
|