Results 1 to 2 of 2

Thread: Tool bar button menus

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Mar 2005
    Posts
    26

    Tool bar button menus

    Hi

    I Have a tool bar with dropdown buttons in it I know how to see what button is pressed but how do I tell when I have click one of the button menus? in the code below in the select statment where there is no value for case 12, 14, 16 and 20 that is where I have my dropdowns with 3 menu item in each. how do I tell what menu I have clciked

    Thanks

    Hugh

    VB Code:
    1. Private Sub Toolbar1_ButtonClick(ByVal Button As MSComctlLib.Button)
    2. Select Case Button.Index
    3.     Case 2
    4.         mnuNew_Click
    5.     Case 4
    6.         mnuOpen_Click
    7.     Case 6
    8.         mnuDelete_Click
    9.     Case 8
    10.         mnuTeach_Click
    11.     Case 10
    12.         mnuLogo_Click
    13.     Case 12
    14.      
    15.     Case 14
    16.    
    17.     Case 16
    18.        
    19.     Case 18
    20.         mnuCalc_Click
    21.     Case 20
    22.    
    23. End Select

  2. #2
    Frenzied Member trisuglow's Avatar
    Join Date
    Jan 2002
    Location
    Horsham, Sussex, UK
    Posts
    1,536

    Re: Tool bar button menus

    VB Code:
    1. Private Sub Toolbar1_ButtonMenuClick(ByVal ButtonMenu As MSComctlLib.ButtonMenu)
    2.   Debug.Print ButtonMenu.Text
    3. End Sub
    This world is not my home. I'm just passing through.

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