Creating menu items
To create a menu item (i.e. Open, on the
File Menu), use the following steps:
1) Select Tools | Menu Editor
2) Click the item on the list after
the menu you want this item to go on. (i.e. after File). If there is an item already
there, click Insert:
3) Enter the text to be displayed for the
menu item in the Caption text box (i.e. Open). As always you can use the & to set the
Shortcut key: So &Open would display the menu item Open and could be accessed
by Alt+O when the File menu is open
4) Enter a name for the menu item. This will
be used when accessing the menu's properties in your code.
5) Press the > button once. You will see
four dots (....) appear before the text Open. This shows that Open is a item on the menu
File:
6) Click OK. If you have used the examples,
you will now see something like this when you click on File:
6) To write some code that runs when a menu
item is clicked, simply click the menu item during design time. A code window will open
with a new procedure. Enter any code you want to run when the menu item is clicked here.