Prehľad
Nástroje obsahu
%HI_Menu_AddItem( INT in _ID, INT in type, TEXT in text, INT in itemId, INT in parentItemId, HBJ in _object, INT in instance )
_ID | Used menu, it has been created by function %HI_Menu_Create. |
type | Item type. Allowed values:
|
text | Text of item which is to be added. |
itemId | Unique identifier. |
parentItemId | Unique identifier of the parent popup menu (popup menu one level above). |
_object | Reference to object of Graph, Picture or Report type, which is opened after the item selection. |
instance | Instance number in which the object is to be opened. It can be used only for objects of Graph and Picture type. |
After selection the item with the parameters _object = 0 and instance = 0, the event (ENTRY
OnMenu_Result) is generated into picture that created the menu.
If the menu is persistent, the ENTRY will not be generated after picture (that created menu) closing.
Pridať komentár