Getting Started

Making the event-to-action connection

To assist the user of an application, it is often helpful to set input focus to a particular part in the user interface. In our example, the user must enter their social security number to perform a transaction. To set input focus to the Enter SSN entry field when the window is opened, you need to connect the openedWidget event of the window to the setFocus action of the Text part.

  1. From the Window part's pop-up menu, select Connect > openedWidget.
    Note:Make sure you select openedWidget, which is an event, and not openWidget, which is an action.
  2. Click mouse button 1 on the Enter SSN Formatted Text part and then select setFocus from the pop-up menu.

Your MainWindowView part should now look like this:
InvestmentApp MainWindowView


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]