MENUS AND THE MENU EDITOR Elements of a

  • Slides: 12
Download presentation
MENUS AND THE MENU EDITOR

MENUS AND THE MENU EDITOR

Elements of a Menu bar Menu title Separator bar Menu items

Elements of a Menu bar Menu title Separator bar Menu items

The Menu Editor Menu control properties Menu title Menu items Separator bar Menu control

The Menu Editor Menu control properties Menu title Menu items Separator bar Menu control list box

Setting Properties for Menu Commands Name property - assigns the name used to refer

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

Menus and the Menu Editor Access key - underlined keyboard alternative to a menu

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

Menu Design • • Use short menu names, single word Use unique menu items

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

Add Menus to the Learning Arithmetic Project Hands-On Exercise 3 (P. 194 -204) –

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 How. To form and controls Add code to activate the menus Test the menus and forms

Summary. . . • Design GUIs using 5 basic design principles 1. Know your

Summary. . . • Design GUIs using 5 basic design principles 1. Know your end user 2. Be consistent 3. Use informative graphics and messages 4. Keep it simple 5. Let the user control the application • Design GUI on paper first

Summary • Add controls to forms using tools from the toolbox • Intrinsic controls

Summary • Add controls to forms using tools from the toolbox • Intrinsic controls are always in the toolbox • Active. X controls and Insertable Objects can be added to the toolbox • Use the Menu Editor to add menus • Add code to activate the menus

Practice with Visual Basic 1. Controls Demonstration Sample (p. 208) 2. MDI vs. SDI

Practice with Visual Basic 1. Controls Demonstration Sample (p. 208) 2. MDI vs. SDI Interface Style (p. 208) 3. Graphic Explorer Project (p. 209) 4. My Calendar (p. 210)

Case Studies • • Create a Prototype Insertable Objects Active. X Controls from the

Case Studies • • Create a Prototype Insertable Objects Active. X Controls from the Web Exploring MS Visual Basic 6 Copyright 1999 Prentice-Hall, Inc. 11

End of Lecture

End of Lecture