Chapter 9. Working with Menus

Rarely a serious UI application go by without menus. Menus are handy because they take only little space out of the screen real estate. Also, only a menu bar needs to appear at all times. Most menu items are in fact hidden and do not take space at all. To use menus, first add a menu bar to the container and add menus to the menu bar. Then, add menu items to a menu. To support hierarchical menus, you can add menu items to a menu item.

In OpenLaszlo, a menu bar is represented by the Menubar class, a menu by the Menu class, and a menu item by the Menuitem class. In this chapter you will learn about menus and how to use them.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset