Page 224 - Open Soource Technologies 304.indd
P. 224
Event Driven Programming
9. In the Menu Editor type of box used
(a) Square box (b) List box
(c) Rectangle box (d) None of the above
10. Pop-up menu displayed on
(a) Task bar (b) Menu bar
(c) None of the above (d) All of the above
9.11 Review Questions
1. Need of zero order method, no of controls in form, Property used to add a menus at
runtime, Property used to count number of items in a combobox,resize a label control
according to your caption.
2. Which property of menu cannot be set at run time?
3. How do I make a menu popup from a Command Button?
4. How to create menus at run time in VB?
5. Visual Basic supports pop-up menus, those context-sensitive menus that most commercial
applications show when you right-click on an user interface object. How pop-up menu can
be created in Visual Basic? Explain with example.
6. Visual Basic forms can be used to host a menu bar. What two methods can be utilized by
Visual Basic to create these menus?
7. When designing application menu bars, a variety of terminologies are used to refer to the
different levels and positions held by a menu item. What is the name of a menu item that
appears directly under a window’s title bar?
8. When using the Menu Editor, how can the programmer define which menus will be at the
top, which will be sub-items, and how the order is controlled?
9. Pop-up menus are displayed when the user selects the right mouse button. This displays
a menu with options specific to the area that the user has selected. In which event, in Visual
Basic, would a programmer trap for the use of the right mouse button?
10. Right-clicking on certain objects provides the user with a menu. What names are used to
refer to this menu?
11. Menus can be created dynamically in Visual Basic by declaring a menu array and then
loading a new element into the menu array. Once loaded, the new menu can have its
properties set True or False. Why?
12. What is the use of MsgBox?
13. What is the use of Menu Editor in new menus and menu bars?
14. How to create a separator bar in the Menu Editor?
218 LOVELY PROFESSIONAL UNIVERSITY