Page 222 - Open Soource Technologies 304.indd
P. 222
Event Driven Programming
9.9 Keywords
Access keys: Allow the user to open a menu by pressing the ALT key and typing a designated
letter.
Context menus: When the right mouse button was pressed; therefore, pop-up menus are also
called context menus.
Modal dialog box: A window that appears on a computer screen, presenting information or
requesting input.
Modeless dialog box: Modeless dialog box will allow the user to work with the parent window.
Pop-up menu: Pop-up menu is a floating menu that is displayed over a form, independent of the
menu bar.
1. Create menu controls in the Menu Editor.
2. Write a step to assign an access key to a menu control in the Menu Editor.
9.10 Self Assessment Questions
1. The Execute Direct data-manipulation model is appropriate when
(a) You need to perform one-time-only operations on the data.
(b) You need to execute queries typed by users.
(c) You need to execute the same dynamic query several times during a single session
of your application.
(d) You need to execute the same query over many sessions and from many different
workstations.
2. The Menu Editor enables the programmer to create menu objects. These objects can have
a variety of properties set and changed. Which property cannot be affected by using the
Menu Editor?
(a) Checked (b) Visible
(c) Picture (d) Shortcut Key
(e) Enabled
3. In certain applications, objects provide a shortcut menu by using the right mouse button.
This popup menu can be used to provide common commands for the selected object. Which
item best describes the requirements to create a pop-up menu?
(a) Define the top-level and sub-level menu item, trap for the right mouse button in the
MouseUp event, and call the form PopupMenu method.
(b) Define the menu items, trap for the right mouse button in the MouseUp event, and
call only the selected menu items.
216 LOVELY PROFESSIONAL UNIVERSITY