CHAPTER 4 WORKING WITH REALBASIC MENUS 131 (Web site templates)
CHAPTER 4 WORKING WITH REALBASIC MENUS 131 Menu Help Menu Item EditSelectAll HelpAbout Text Property Select &All &About You do not have to add the FileQuit menu item on the File menu or any of the menu items for the Edit menu. REALbasic already added these menu items for you. In addition, you do not have to add any program code for these menu items as REALbasic has already provided everything these menu items need to do their job. At this point, the menu system for the RBQuickNote application is complete and should look like the example Figure 4-23 shows. Figure 4-23. The menu system for the RBQuickNote application Supplying Application Code All code for the RBQuickNote application is placed in four event handlers, one for each menu item you added to the File and Help menus. Begin by opening the MenuBar1 in the REALbasic MenuBar Editor and switching over to Code view. Next, click the Add a Menu Event Handler button located on the MenuBar Editor toolbar. A Menu Handler s entry is added to the left- hand browser area in the Menubar Editor; a single entry is displayed beneath it with a text property of untitled. By default, this entry is selected and the right-hand side of the Windows Editor is set up to accept the code statements you want to associate with this menu item. Select the entry for the FileClear menu item from the drop-down list for the MenuItem Name field and enter the following program statements. Window1.EditField1.Text = “”
We recommend high quality webhost to host and run your jsp application: christian web host services.