Results 1 to 3 of 3

Thread: How do u name the Menu of a Pop up menu? Just look at what i wrote :)

  1. #1

    Thread Starter
    Registered User struntz's Avatar
    Join Date
    Aug 1999
    Location
    Brockway,Pa,USA
    Posts
    199

    Post

    Hello, the Topic might not have made sense so here is my question
    I want to make a PopUpMenu for A richTextBox and this is the code i used
    Code:
    Private Sub RichTextBox1_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single)
    If Button = vbRightButton Then Me.PopupMenu mnuCut 'mnuCut is suppose to be the menu name?
    i made only 3 simples menu items in the menu editor Cut,Delete,Paste
    and i don't know what u are suppose to do for the MenuName .. .how do you name the menu?
    Thats it i hope it makes sense what my problem is !
    Thanks for your time.

    ------------------
    Cory Sanchez
    Young Student
    ICQ#: 18640149



  2. #2
    Guru Aaron Young's Avatar
    Join Date
    Jun 1999
    Location
    Red Wing, MN, USA
    Posts
    2,177

    Post

    What you need to do is create a Single Menu, with Cut, Copy and Paste as sub Menus of that Menu.

    In the Menu Editor, create an entry called mnuPopup, give it a Caption of Popup Menu, hit Next, then Hit the Right Arrow to indicate a SubMenu Item.

    Enter your Cut, Copy, Paste Options, so that they are all Indented under Popup Menu.

    For the mnuPopup Entry Uncheck the Visible Checkbox.

    Then in Code, call: Me.PopupMenu mnuPopup
    This will Show the Cut, Copy and Paste Options.

    ------------------
    Aaron Young
    Analyst Programmer
    [email protected]
    [email protected]

  3. #3

    Thread Starter
    Registered User struntz's Avatar
    Join Date
    Aug 1999
    Location
    Brockway,Pa,USA
    Posts
    199

    Post

    Thank you for your help! it works great!

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