Adult web hosting - 120 CHAPTER 4 WORKING WITH REALBASIC MENUS
120 CHAPTER 4 WORKING WITH REALBASIC MENUS Tip REALbasic automatically inserts separator bars just beneath the currently selected menu item. If, after adding the separator bar, you decide it needs to be moved to a different location within the menu, you can do so by selecting the separator bar, and then dragging-and-dropping it at the appropriate spot. Setting Up Shortcut Keys Shortcuts are designed to provide users with easy access to menu item functionality via the keyboard. For example, in most Macintosh applications, users can save their work by pressing Command+S. Likewise, users can save their work on Windows and Linux applications by pressing Ctrl+S. While not required, most users today have become savvy enough to look for and expect to find application shortcuts, so it is important that you provide them. Otherwise, you run the risk of disappointing your users and, perhaps, making them think your applications are not yet ready for prime time. Fortunately, REALbasic makes the process of assigning shortcuts to your menu items a snap. Given how easy defining shortcuts is, it is important that you add them to your applications to make your applications look as professional as possible. To specify shortcuts, you need to modify the following properties for each menu or menu items: Key. A single letter pressed in conjunction with a modifier keys to trigger a menu event handler. MenuModifier. When enabled, the user must press and hold Control on Windows (or Command on Macintosh) in conjunction with the specified key to trigger the menu s event handler. Note Macintosh, Windows, and Linux all begin looking for shortcuts starting with the left-most menu. Therefore, if you assign the same shortcut to a menu item located on two separate menus, only the first instance (the left-most instance) will work as expected. For example, the following procedure demonstrates how to assign a shortcut of Command+I or Ctrl+I to a menu item named Properties on a File menu. 1. Finish building the menu system for your REALbasic application. 2. Select the File menu to expand and see its contents. 3. Select the Properties menu item. 4. Specify I as the value of the Properties menu item s Key property.
If you are looking for affordable and reliable webhost to host and run your business application visit our ftp web hosting services.