csa computer4 lesson5

50 %
50 %
Information about csa computer4 lesson5

Published on July 30, 2008

Author: sdreyes102877

Source: authorstream.com

L e s s o n 5 MENUS Menu Editor : L e s s o n 5 MENUS Menu Editor Lecture [07/30, 2008] Objectives: Explain the functions of the Menu Editor intelligently. Participate actively in the discussion by giving personal idea on the topic being presented. Connect Menus and Menu bar in VB application. Slide 2: Menu Editor is a dialog box that you access from the Form window by pressing Ctrl+E or by selecting Tools | Menu Editor from Visual Basic's own menu bar. Figure 1 shows the Menu Editor dialog box. Figure 1 Menu Structures appears here as you build the Menu Adding Menus to an Application using the Menu Editor : Adding Menus to an Application using the Menu Editor Figure 2 The Menu Editor main function is to attach a MENU BAR (pull down menu) to any simple application. Menu Samples: File, Edit, View, Help… Figure 3 NAMING MENU BAR COMMANDS/OPTIONS : NAMING MENU BAR COMMANDS/OPTIONS Generally, Visual Basic programmers follow the standard of naming menu bar options with the prefix mnu followed by the name of the item. Therefore, the File option is named mnuFile, Edit is named mnuEdit, and so on. Figure 4 Other Functions: : Other Functions: Figure 5 adding separator bars (bars that help group menu options using the symbol hyphen ( - ) submenus (menus that appear from other menu options) checked items, and shortcut access keystrokes.  Slide 6: Figure 7 Menu Editor creates your menu, but you still need to write event procedures (codes) that bind menu command selections to actions taken by your application. Note: The only event that menu item supports is the Click() event. Figure 6 Sample Program: NOTE EDITOR : Sample Program: NOTE EDITOR Drill: Group Work [four students / group] : Drill: Group Work [four students / group] Modify the sample interface of the Note Editor program, Example1 on page 46 of the Computer textbook. Place a number of objects on the Form making your final layout a bit personalized. Follow the 5’ by 5’ size of the form. Illustrate your answer on a short bond paper, portrait orientation. Label your paper properly. Please follow the format below. (Class Number of each member , Names, and section) Ex. G15 - Reyes, She Ann D. G18 - ADVIENTO, Leah S. B18 - CABRALES, Jean R. B20 - MARCIAL, Darwin A. (St. Monica) Sample Interface: : Sample Interface:

Add a comment

Related presentations