Building blocks
Building basic menus through the designers is a simple two-step process of adding items, then adding code to make the items do what you want them to do.
Like any other object, each menu item has its own set of properties available through the Inspector (F11 to view). The "action" code is applied through an item’s onClick event.
Not all items need to perform an action, however. Some, like top-level items, normally only serve as entry points to additional menu choices. Lower-level items, and any item in a popup menu, can also serve as entry points to additional menus. These types of menus are called submenus (also known as "cascading" or "flyout" menus). File|New on the main dBASE Plus menu is an example of this type of menu. And any submenu item can be specified as an entry point to another submenu.
Another type of "non-action" item is the separator bar, a horizontal line that lets you group items within menus. You specify a separator anywhere except in a top-level item. To make a separator, set an item’s Separator property to True.
To provide further visual cues and functionality, you can add graphics, mnemonics, check marks, shortcut keys, and conditionally enable or disable any item in any menu.