You are on page 1of 8

MENUS AND THE MENU

EDITOR

Md. Saidur Rahman, CSC

Elements of a Menu
Menu bar

Menu title

Menu items

Separator bar

Md. Saidur Rahman, CSC

The Menu Editor

Menu control
properties

Menu title
Menu items

Menu control
list box

Md. Saidur Rahman, CSC

Separator bar

Setting Properties for


Menu Commands
Name property - assigns the name used to refer
to the menu control in your code
Enabled property - menu control appears
dimmed (grayed out) when not enabled
Caption property - assigns the command to
display on the menu bar or submenus

Md. Saidur Rahman, CSC

Menus and the Menu Editor


Access key - underlined keyboard alternative to a
menu command - Press Alt + key
Shortcut key - assigned to most frequently used
menu items Press Ctrl + key
Separator Bar - divides menu items into logical
groupings

Md. Saidur Rahman, CSC

Menu Design

Use short menu names, single word


Use unique menu items for each menu
Group menus logically
Choose a logical access key for menu
items
Choose logical keyboard shortcuts for
most commonly used commands
Md. Saidur Rahman, CSC

Add Menus to the Learning


Arithmetic Project
Hands-On Exercise 3 (P.194-204)

Open the Learning Arithmetic project


Save project files with a new name
Add menu titles
Add menu items
Modify the About form
Add the HowTo form and controls
Add code to activate the menus
Test the menus and forms
Md. Saidur Rahman, CSC

Thanks

Md. Saidur Rahman, CSC

You might also like