Adding a Set focus event action

Use the Set focus event action to set the focus on any given control name parameter. For example, you might incorporate the Set focus event action so that when a user makes a selection, the result is to take the control name as the parameter on which the focus needs to be set.

About this task

To add a Set focus event action to an object:

Procedure

  1. From the Events view, select the object in the editor window and double-click the event that you want to trigger.
    The [objectname] Behavior window opens.
  2. Click the Add New Action icon.
    The Add New Action window opens.
  3. Select Set focus in the actions tree.
    Note: To quickly find the required event action, type the name of the action in the filter text field.
  4. Click Next. The Set focus action parameters window opens.
  5. Specify the control name of the component in one of the following ways:
    • Type the name in the Component field;
    • Click Set from current level to choose the component.

      The Set component dialog opens. Select the component from the current level and click OK to close the Set component dialog.

  6. Click Finish. The Set focus action is added. The Add New Action window closes.
  7. From the [objectname] Behavior window, click the Apply button to apply all actions that have been added for the event.
  8. Click OK to close the [objectname] Behavior window.

Results

You have added a Set focus event action to an object.