Article # 234, added by Geoworks, historical record
| first | previous | index | next | last |

How can I get the optr of a dialog's OK or Cancel trigger?



There is no way to get the optr of dialog's trigger if it is system
defined. You can however define your own trigger and thus easily
have its optr. Make the trigger a child of the dialog object and
add ATTR_GEN_TRIGGER_INTERACTION_COMMAND to the trigger. This
will cause it to perform all the functionality of a system defined
trigger.

ATTR_GEN_TRIGGER_INTERACTION_COMMAND takes a InteractionCommand like
IC_OK or IC_DISMISS.