Menu Editor The Menu Editor allows us to define the menu structure, adding access keys and shortcut keys, if desired. We then add code to the Click events we need to respond to. The Menu Editor is selected from the Tools menu bar or by clicking the Menu Editor on the toolbar. This selection can only be made when the form needing the menu is active. Upon selecting the editor, and entering the example menu structure The Caption box is where you type the text that appears in the menu bar. Access keys are defined in the standard way using the ampersand (&). Separator bars (a horizontal line used to separate menu items) are defined by using a Caption of a single hyphen (-). When assigning captions and access keys, try to use conform to any established Windows standards. · The Name box is where you enter a control name for each menu item. This is analogous to the Name property of command buttons and is the name used to set properties and establish the Click event procedure for each menu item. Each menu item must have a name, even separator bars! The prefix mnu is used to name menu items. Sub-menu item names usually refer back to main menu headings. For example, if the menu item New is under the main heading File menu, use the name mnuFileNew. · The Index box is used for indexing any menu items defined as control arrays. · The Shortcut dropdown box is used to assign shortcut keystrokes to any item in a menu structure. The shortcut keystroke will appear to the right of the caption for the menu item. An exa mple of such a keystroke is using Ctrl+X to cut text.
Menu Editor The Menu Editor allows us to define the menu structure, adding access keys and shortcut keys, if desired. We then add code to the Click events we need to respond to. The Menu Editor is selected from the Tools menu bar or by clicking the Menu Editor on the toolbar. This selection can only be made when the form needing the menu is active. Upon selecting the editor, and entering the example menu structure The Caption box is where you type the text that appears in the menu bar. Access keys are defined in the standard way using the ampersand (&). Separator bars (a horizontal line used to separate menu items) are defined by using a Caption of a single hyphen (-). When assigning captions and access keys, try to use conform to any established Windows standards. · The Name box is where you enter a control name for each menu item. This is analogous to the Name property of command buttons and is the name used to set properties and establish the Click event procedure for each menu item. Each menu item must have a name, even separator bars! The prefix mnu is used to name menu items. Sub-menu item names usually refer back to main menu headings. For example, if the menu item New is under the main heading File menu, use the name mnuFileNew. · The Index box is used for indexing any menu items defined as control arrays. · The Shortcut dropdown box is used to assign shortcut keystrokes to any item in a menu structure. The shortcut keystroke will appear to the right of the caption for the menu item. An exa mple of such a keystroke is using Ctrl+X to cut text.
VISUAL-BASIC-is-a-high.docx