MENU DEFINE

If the painter was invoked by MENU DEFINE, then only menu item objects can be added. If the menu does not already exist (i.e. there is no definition data for it in the Zim Data Dictionary), the painter creates a menu (displayed as a menu bar) with default attributes. If the menu does exist, the painter loads and displays that menu within the paint window. Note that for a menu to exist, it must own at least one menu item.

If an association had previously been established between the menu and a particular window, then that window is loaded as the paint window.

The Generate function is unavailable under MENU DEFINE.

Related Information

WINDOW DEFINE