Control Events
Most of the controls used in page designs have predefined events associated with them (see table below). For example a button control has an OnButtonClicked event associated with it. These events are called control events, and each can have an action (a control action) defined for it. When a control event is triggered while a MobileTogether solution is being executed, the control action that has been defined for the event is carried out.
The table below lists controls and their events.
Control | Event |
— none — | |
OnButtonClicked | |
OnImageClicked | |
OnFinishEditing | |
OnFinishEditing | |
OnFinishEditing | |
OnFinishEditing | |
OnTyping | |
OnGeoMapMarkerClicked | |
— none — | |
OnSliding | |
OnImageClicked | |
OnLabelClicked | |
OnFinishEditing | |
OnFinishEditing | |
— none — | |
— none — | |
OnFinishEditing | |
— none — | |
OnFinishEditing | |
— none — | |
OnVideoStarted, OnVideoError, OnVideoCompleted |
Defining the actions of a control event
Action/s of a control event are defined in the Actions dialog (see screenshot below). Drag the desired action from the left-hand pane into the event tab in the right-hand pane.
The Actions dialog of a control is accessed in one of the following ways:
•Right-click the control, and select Control Actions for ...
•In the Styles & Properties Pane, click the Additional Dialog button of the Control Action property
•Click Page | Actions Overview to display the Actions Overview dialog. Then click the Additional Dialog button of the control event you want to define.
For more information about the various types of available control actions, see the section Actions.