Creating Context Menus for Fields
All form fields except cyclic, frame, and separator fields have a context menu, that is, a pop-up menu, which is displayed when you right-click on the field. Context menus are associated with form fields through the following properties:
To set a context menu for a field,
-
Create a context menu with either hiCreateSimpleMenu
or hiCreateMenu. -
Set the
hiContextMenuproperty on the field. -
(Optional) If you want to set a callback for the context menu, which starts just before the context menu is displayed, set the
hiShowContextMenuCallbackproperty on the field.
Return to top