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 executing the %HI_PopUpMenu_Create function, there is usually the %HI_PopUpMenu_AddItem function called and then the %HI_PopUpMenu_Show function to display the defined menu. Selection in the menu or termination of the menu generates the picture event OnPopUpMenu_Result.
0 komentárov