Article # 384, added by Geoworks, historical record
| first |
previous |
index |
next |
last |
Replacing the functionality of dialog buttons.
Q. For a GenInteraction type organizational, visibility dialog, there is an Exit button for the dialog. I would like to replace/extend the action of that button. Can I substitute the Exit button in the UI with another GenTrigger through a ATTR_GEN_TRIGGER_INTERACTION_COMMAND? If so, what? Or can I subclass a message in the GenInteractionClass to intercept the message that the trigger is sending or something? A. ATTR_GEN_TRIGGER_INTERACTION_COMMAND = {IC_EXIT} only works for triggers that are in a GIV_POPUP GenInteraction (not GIV_DIALOG). Therefore, you should create your own Exit trigger. Use a GenTrigger that sends a message to a destination (this constitutes the additional functionality), and add to it the GA_SIGNAL_INTERACTION_COMPLETE attribute. Put HINT_SEEK_REPLY_BAR on the trigger as well.