|
-
Nov 20th, 1999, 09:50 AM
#1
Thread Starter
Registered User
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
-
Nov 20th, 1999, 10:35 AM
#2
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]
-
Nov 20th, 1999, 11:59 AM
#3
Thread Starter
Registered User
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|