The function %HI_PopUpMenu_Create initializes the process to create the
popup menu (creates empty menu). The parameters x and y
defines the position of the menu that will be displayed in the picture.
The position is relative according to the corner left bottom of the
picture (coordinates 0,0). If the parameters are defined x=-1,
y=-1 the popup menu will be placed on current mouse cursor
position.
After execution of the function %HI_PopUpMenu_Create, usually there is
called the function %HI_PopUpMenu_AddItem
and then the function %HI_PopUpMenu_Show
to display the defined menu. Selection in the menu or termination of the
menu generates the picture event OnPopUpMenu_Result.
Pridať komentár