PDA

Click to See Complete Forum and Search --> : How do u name the Menu of a Pop up menu? Just look at what i wrote :)


struntz
Nov 20th, 1999, 08:50 AM
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

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

Aaron Young
Nov 20th, 1999, 09:35 AM
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
aarony@redwingsoftware.com
adyoung@win.bright.net

struntz
Nov 20th, 1999, 10:59 AM
Thank you for your help! it works great!