Results 1 to 18 of 18

Thread: Make A Drop Down Menu (in a toolbar?)

  1. #1
    Stiletto
    Guest
    sups
    I would like to know how to make a drop down menu, like the one in the Back button in IE.
    can some1 plz show me what i need to do in the toolbar or something, and what codes to put after the menu is open..
    tnx

  2. #2
    Matthew Gates
    Guest
    Create a menu. And you can use the PopupMenu statement to bring up the menu.

  3. #3
    Stiletto
    Guest

    ummm

    what Menu
    how to create the menu?
    in 'Insert Menu Buttons'?

  4. #4
    Matthew Gates
    Guest
    Go to Tools > Menu Editor (or right click the Form). Then create your menu from there.

    Set the Caption.
    Set the Name.

    And for the PopupMenu statement, it uses the name to identify the menu and is used like:


    Code:
    PopupMenu mnu

    So if your menu was named MyMenu, than you'd call it like this:


    Code:
    PopupMenu MyMenu

  5. #5
    Stiletto
    Guest
    oh, but i ment in a toolbar... how to create a drop down menu in a toolbar menu, just like in the Back button and Forward button in IE.

  6. #6
    anoop007
    Guest
    http://www.vbaccelerator.com/codelib/comctl/retbar.htm

    I think this is what you want..

    a bit advanced API coding though..

  7. #7
    Stiletto
    Guest
    omg dude, that's just what i need
    tnx

  8. #8
    anoop007
    Guest


    http://www.vbaccelerator.com/overcomc.htm

    this is the main page.. got lot of other toolbar stuff that
    might interest you...

  9. #9
    Matthew Gates
    Guest
    Guess I was a bit off Stiletto .
    Hope to see you in Subspace anyways .

  10. #10
    anoop007
    Guest
    Subspace?

  11. #11
    Stiletto
    Guest
    yea Subspace, (SS) its an internet game
    yo man, my prob now is how to write the codes in the drop down menu
    in the toolbar, i made a button to be DropDown, and set the buttons menus.
    Now, the index of the 1st button is 1 and his key is ddMnuOK
    How can i put codes in the menu when its clicked (after dropin down)?
    plz help
    tnx

  12. #12
    Stiletto
    Guest
    ne1?

  13. #13
    Member
    Join Date
    Apr 2001
    Location
    india
    Posts
    51

    Talking

    first get the toolbar control ....press f1 ...u will get the corresponding help!

    easy

  14. #14
    Stiletto
    Guest
    well.. i dont have the help files..

  15. #15
    Member
    Join Date
    Apr 2001
    Location
    india
    Posts
    51
    toolbar is only used so that the very important facilities may be easily located by the user and is usually accompanied by animage to help him.....for general drop down list u must not use toolbar (and i think it cannot be used!) ...rather do it using menu editor

  16. #16
    anoop007
    Guest
    you have to figure that out.. i played
    with that control for ages and yet
    haven't done the dropdowns!!

    try www.vbaccelerator.com .. it shud have some help

  17. #17
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649
    Hmmm......

    Since VB6 arrive on the scene you have been able to create dropdown menus with the standard Toolbar control.

    Simply right click on the toolbar and choose Properties and on the Buttons tab set the Style property of the Button to "5 - tbrDropDown".
    Now simply click on the "Insert ButtonMenu" button and set the Text and Key properties.
    Do it again for the next menu item and so on.

    Now write code for the menu in the ButtonMenuClick event.
    It's as simple as that....

    Best regards

  18. #18
    Matthew Gates
    Guest
    Originally posted by anoop007
    Subspace?

    http://www.subspace.net


    Very addicting game!

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