128 CHAPTER 4 WORKING WITH REALBASIC MENUS (Bulletproof web design)
128 CHAPTER 4 WORKING WITH REALBASIC MENUS Removing Menu and Menu Items If a menu or menu item is no longer needed, you can remove it from your application by selecting it and pressing Delete or by clicking Edit . Delete. Take care when deleting a menu because you also delete any submenus and menu items defined under it. Also, REALbasic does not delete any menu handler associated with a deleted menu item, so it s up to you to remember both to select and delete it. Customizing the Apple and Macintosh Menus As you already saw, application menus work a little differently on the Macintosh than they do on Windows and Linux. For starters, menus are not displayed on application windows on the Macintosh. Instead, menus are displayed at the top of the display area for the currently selected application. Differences also exist between the ways that menus look and operate on Macintosh Classic and Mac OS X. Specifically, on Macintosh Classic, an Apple menu is added to the left of the File menu. On Mac OS X, though, an application menu is added to the left of the File menu, but just to the right of the Apple menu. Note REALbasic displays the name of the application as the text value for the Application menu (for example, the name you specified as the application s name in the Mac Settings section of the APP item on the Project Editor. To add an menu item in the Application menu on Mac OS X, you begin by placing the menu item in the menu where you want it to appear on Windows, Linux, and Macintosh Classic (if you re going to compile the application for these OSs). You then change the Super property from the default value of MenuItem to PrefsMenuItem. The result is this: the new menu item appears in the menu where it was defined on Windows, Linux, and Macintosh Classic, but it is displayed on the Application menu on Mac OS X. You cannot add a menu item to the Apple menu on Mac OS X, but you can add it to the Macintosh Classic Apple menu. To do so, add the menu item where you want it to appear on Windows and Linux, and then change the Super property from the default value of MenuItem to AppleMenuItem. This results in the display of the menu item on the Macintosh Classic menu and the display of the menu item on the Application menu for Mac OS X. The menu item displays on the menu where you added it on Windows and Linux.
You need excellent and relaible webhost company to host your web applications? Then pay a visit to Inexpensive Web Hosting services.