OnPopUpMenu_Result

OnPopUpMenu_Result

OnPopUpMenu_Result picture event


Declaration

ENTRY OnPopUpMenu_Result(IN INT _id) ; script actions END OnPopUpMenu_Result

Parameters

_id

Unique identifier of popup menu item.

Description

The picture event is being generated either when the user selects the item from selected popup menu - the parameter _id contains the unique identifier of the popup menu item (defined as the parameter id of the function %HI_PopUpMenu_AddItem), or when the menu disappears with no selection - the parameter _id is equal to 0.

Example

Easy handler of item selection. The handler is a continuation of the example of the function %HI_PopUpMenu_AddItem.

 

ENTRY OnPopUpMenu_Result(IN INT _id) IF _id = 221 THEN ; the item "Text 2.2.1" is selected ELSIF _id = .....
... ENDIF END OnPopUpMenu_Result