Creating Menu
Creating Menu
Steps
1. Open menu editor by single click on menu editor in the tools menu. Or it may be also run by
the pressing CTRL +E
2. After opening menu editor it shows with the following options as –
Caption
Name
Shortcut
Enable
Visible
Next button
Insert button
Delete button
Left and Right arrow button
Up and down arrow button
3. Place menu name into the caption box like edit.
4. Place the variable name into name box like mnuedit
5. Place again command name into the caption box like copy
6. Assign shortcut key from shortcut dropdown combo box – CRTL + C
7. Place the variable name into name box like cmdcopy.
8. Repeat this process for the same next commands into this menu.
9. Use left arrow for creating one level inside the menu and use it at twice time then will create
the second level inside the menu.
10. After designing this menu go into the code window and write the event procedure related to
the menu command.
11. Code here
Private Sub CMDCOPY_Click()
If Text1.SelText = "" Then
MsgBox "please select the text before going to copy"
Exit Sub
Else
Clipboard.SetText Text1.SelText
MsgBox "YOUR TEXT HAS BEEN COPIED, YOU MAY PASTE THIS ANY TIME"
End If
End Sub