CreateMenu Objects Menu 5.1 OC bool id symbol The picture of this object definition is used as symbol. object command_object Object to receive the menu command (see AddMenuItem). Can be nil in local calls. int extra Additional information to be displayed about the currently selected entry. C4MN_ values are now also defined as constants: ConstantValueEffect C4MN_Extra_None0Nothing C4MN_Extra_Components1Components C4MN_Extra_Value2Value C4MN_Extra_MagicValue3Value as magic value. extra_data is also displayed for comparison, e.g. "50/100". C4MN_Extra_Info4Display object description immediately. C4MN_Extra_ComponentsMagic5Display components and magic value.
string caption Text to be displayed if the menu is empty. int extra_data Comparison value for extra 3. int style Appearance of the menu. The following constants are defined: ConstantValueAppearance C4MN_Style_Normal0Normal C4MN_Style_Context1Context menu C4MN_Style_Info2Info menu C4MN_Style_Dialog3Dialog C4MN_Style_EqualItemHeight128Can be combined with C4MN_Style_Dialog: all entries with an icon are drawn with the same height.
bool permanent The menu stays open after an entry has been selected. id menu_id If specified, this id is used as menu id. The current menu id is returned by GetMenu
Creates a user defined menu for the specified object. Menu entries are to be added using AddMenuItem. see AddMenuItem AddMenuItem SelectMenuItem GetMenu CloseMenu
springer2002-04 Sven22007-03