Page 221 - Open Soource Technologies 304.indd
P. 221

Unit 9: Menus and Dialog Boxes







































                          Figure 9.12:  The Pop-up  Menu Described in the Menu Editor in  Figure 6.11
                                        Shown in Design Mode Dropped Down.

                Menus that will be used as pop-up menus should not be displayed in the main menu bar when
                the application is running. Hence those menus that you will be using as pop-up should be
                made invisible by unchecking the Visible property in the Menu Editor as shown in Figure 9.11.
                Questions
                  1. Write code for a menu item by clicking on menu items in design mode.
                  2. Write code for Adding a Pop-up to a System Tray Icon.
               9.8 Summary


                  • Menu editor is used to create new menu and bars.
                  • By dating access keys and shortcut keys we can improve keyboard access to menu commands.
                  • A separator bar is used to divide items into logical groups.
                  • A pop-up menu is a floating menu that is displayed over a form, independent of the menu
                    bar.
                  • A model dialog box must be closed before you can continue working with the rest of the
                    application and modeles dialog boxes shift the focus between the dialog box and another
                    form without having to close the dialog box.
                  • Predefined dialog box is the easiest way to add a dialog box into the application.




                                      LOVELY PROFESSIONAL UNIVERSITY                        215
   216   217   218   219   220   221   222   223   224   225   226