Page 223 - Open Soource Technologies 304.indd
P. 223
Unit 9: Menus and Dialog Boxes
(c) Use the pop-up property of the object.
(d) Assign a top-level menu to the pop-up menu property of the object.
(e) Use the Menu Editor, define the top-level menu name as “pop-up,” and in the MouseUp
event call the menu.
4. Assume that the Menu Editor has already been used to create a menu structure. For the
menus to provide the functionality required, how are the menu items assigned program
code?
(a) By using the ItemCode property in the editor
(b) By using the Menu property in the Properties window
(c) By using the ItemCode property in the Properties window
(d) By selecting the menu item from the form and entering code into the opened Code
window
(e) None of these
5. When a menu control array is created, runtime menu items can be added to the array. When
the element’s properties are set, where in the menu structure do the new items appear?
(a) In the order specified by the NegotiatePosition property
(b) In the order specified by the array element
(c) Immediately below the preceding array element
(d) At the bottom of the menu specified at design time
(e) None of these
6. You can specify that a menu control will be a separator bar by
(a) Supplying a space(“ “) as the Name property
(b) Supplying a dash (“—”) as the Caption property
(c) Supplying a dash (“—”) as the Name property
(d) Supplying an underscore (“_”) as the Caption Property
7. Menus in Visual Basic can have their appearance changed to reflect the state of the application.
To change menu items in VB at runtime, which methods can be used?
(a) The Menu Editor (b) Program code
(c) Program code and the Menu Editor
(d) Menu property of a form
(e) Negotiate property of a form
8. Command used to create new menus and menu bars/
(a) Menu Editor (b) Text editor
(c) Box editor (d) None of the above
LOVELY PROFESSIONAL UNIVERSITY 217