GEOS SDK TechDocs
|
|
3.2 Interaction Commands
|
3.4 Initiating an Action
ATTR_GEN_TRIGGER_CUSTOM_DOUBLE_PRESS
Your trigger sends out the message in the GTI_
actionMsg
field and data in the ATTR_GEN_TRIGGER_ACTION_DATA field whenever the user clicks on the trigger, whether that click is a single or a double-click. If you wish your trigger to send out an alternate message if the user double-clicks, use ATTR_GEN_TRIGGER_CUSTOM_DOUBLE_PRESS
.
If you set a message for this attribute, the trigger may send out two different messages: one for a single click action and another for a double-click action.
Code Display 5-4 A Trigger with a Double-Click Message
@object GenTriggerClass DoubleClickTrigger = {
/* If the user single-clicks on this trigger, MSG_MY_ACTION will be sent along * with data1 to the process. If the user double-clicks, * MSG_MY_DOUBLE_PRESS_ACTION will be sent instead. */
GTI_actionMsg = MSG_MY_ACTION;
GTI_destination = process;
GI_visMoniker = "Single or Double Click!";
ATTR_GEN_TRIGGER_ACTION_DATA = data1;
ATTR_GEN_CUSTOM_DOUBLE_PRESS = MSG_MY_DOUBLE_PRESS_ACTION;
}
GEOS SDK TechDocs
|
|
3.2 Interaction Commands
|
3.4 Initiating an Action