Setting the hiContextMenu Property
To set the hiContextMenu property on a field, use the following command:
hiFormHandle->hiFieldSymbol->hiContextMenu=r_value
where hiFormHandle is the handle to the form returned by hiCreateAppForm, hiFieldSymbol is the symbol of the field (set with the ?name argument when the field was created), and r_value is the handle to the pop-up menu returned by either hiCreateSimpleMenu or hiCreateMenu.
Once the property is set to a valid value, when you click the field, the context menu is displayed at the cursor’s position.
Return to top