Title: Acknowledgement
1Acknowledgement
2Lists and Menus Outline
-
- List Box control
-
-
-
- Combo Box control
-
-
-
- Menus
-
3List Box Control Properties
- Displays a list of items.
- User can select one or several items from the
list. - Use only if there is substantial amount of space
on the form.
4Exercise (Adding a List Box Control)
- Adding a List Box control
- Draw a new label
- Draw a list box
- Try all values of MultiSelect property
- Try both 0-Standard and 1-CheckBox styles
5Combo Box Control Properties
- Combination of a text box and a list box.
- Displays a set of items in a drop-down list.
- Can accept text that the user types in.
- User can use keyboard (letters and arrows) to
search for the items in the list. - Focus on the text box portion.
- No drill-down search.
6Exercise (Adding a Combo Box control )
- Adding a Combo Box control
- Remove txtState text box
- Draw a combo box
- Name cboState
- Try all values of the Style property
- 0-DropDown Combo,
- 1-Simple Combo,
- 2-DropDown List.
7Menu Systems
- Most Windows applications have a menu bur under
the title of the window.
- Pop-up menus (activated by right-clicking on a
form) generally offer additional functionality.
Some menus are de facto standard for most
applications (such as File and Help).
8Some Menu Standards
An ellipsis () to the right of a menu item
indicates a dialog box
A checkmark to the left of a menu item indicates
a selected option
An arrow to the right of a menu item indicates a
lower level menu
Menu shortcuts (same as access keys, hotkeys, or
accelerator keys)
Separators may be used to group items into
submenus
Underlined letters in each menu item. For
top-level menus Alt-ltkeygt for drop-down menus
ltkeygt
9Menu Editor and Properties
- Most properties can be set using the Menu Editor
10Exercise (Adding A menu)
- Adding a Menu
- File mnuFile
- Employee mnuFEmp
- - mnuFSep
- Exit mnuFExit
- Edit mnuEdit
- Cut mnuECut
- Copy mnuECopy
- Paste mnuEPaste
- View mnuView
- Toolbar mnuVToolbar
- Status Bar mnuVStatusBar
- Window mnuWindow
- Tile Horizontal mnuWTileHorizontal
- Tile Vertical mnuWTileVertical
- Cascade mnuWCascade
- Arrange Icons mnuWArrangeIcons
- Help mnuHelp
- Help Contents mnuHContents
11Creating an Executable Program
- It is possible to create an executable program
without writing a single line of code. All you
need is the user interface. - Select menu item File?Make
- Select the a name of the file to be created (by
default, it is the same as the name of the
project).