Results 1 to 6 of 6

Thread: Toolbar Dropdown Menu

  1. #1

    Thread Starter
    Member
    Join Date
    Jan 2000
    Location
    honolulu, HI USA
    Posts
    37

    Post

    I have this project with the toolbar and a dropdown menu with it....... What I wanna know is how do u put commands when they click on the drop down menu, I'm dumb! I wanna know how to put a command, because toolbar doesn't have this:
    Private Sub ToolBar1.Buttons(1).Menu(1)_Click ()
    'Commands Here
    End Sub

    It doesn't have that dumb stuff!!!! I wanna know how to put a command when they click on the dropdown menu from the toolbar!!! HELP!!!!!!!

  2. #2
    Lively Member mrdarkwarez's Avatar
    Join Date
    Feb 2000
    Location
    Australia
    Posts
    113

    Post

    well, first create ur dropdown menu in the toolbar1 - create 3 drop menus giving them any caption and key....

    after that, double click on the toolbar1, then add this code to ur buttonmenuclick state


    Private Sub Toolbar1_ButtonMenuClick(ByVal ButtonMenu As MSComctlLib.ButtonMenu)

    Select Case ButtonMenu.Index

    Case 1
    MsgBox "First Drop Down Code"

    Case 2
    MsgBox "Second Drop Down Code"

    End Select
    end sub


    that's all there is to it,
    hope it helps

    Edited by mrdarkwarez on 03-10-2000 at 11:30 PM

  3. #3

    Thread Starter
    Member
    Join Date
    Jan 2000
    Location
    honolulu, HI USA
    Posts
    37

    Post

    THANXXXX, mrdarkwarez........ I appreciate it!

  4. #4

    Thread Starter
    Member
    Join Date
    Jan 2000
    Location
    honolulu, HI USA
    Posts
    37

    Post Wait........

    That command only works in one dropdown, or does it..... if it does then can I have the command for more buttons instead of single button..... If not can u explain how to do this thing.........
    The codes that u gave me works only for 1 buttons, and I'm really looking for codes that works for more than one button...... I don't know how to explain it for those of you who doesn't get it!

  5. #5
    Lively Member mrdarkwarez's Avatar
    Join Date
    Feb 2000
    Location
    Australia
    Posts
    113

    Post hmmm

    i'm not quite sure what u mean, but i have done a project for you, see if its what u wanted... follow the address below:

    http://www.geocities.com/darkwarezlll/modules

    download the toolbarmenu.zip file

    hope it helps

  6. #6

    Thread Starter
    Member
    Join Date
    Jan 2000
    Location
    honolulu, HI USA
    Posts
    37

    Post Thanxx

    Hey, that really helped me now!!! ! And thank you men, your cool !

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