Previous Topic: eGolf Services HomeNext Topic: Add GUI Statements to Action Diagram


Add the Push Buttons

The first things we are going to add to the window are the two non-data GUI control objects, the push buttons.

Follow these steps:

  1. From the Menu Bar select Add, and then select Push Button….
  2. For the Push Button Properties, enter sign up! in the Text: entry field. Notice that the default Button Action is to execute the procedure step. However, for Client Procedure Steps, most logic is executed with event handlers.
  3. Select the Events… push button and examine the Event Processing dialog. At the top, it displays the control object, the sign up! push button. The Defined Events panel shows the events that have been assigned to this object. Currently there are none. In the Event, Details section, you can create new events for this object. In the Event Type: drop-down list, you can select the type of event you want to create for this object. Only click events are allowed for push buttons. In the Action Name: entry field, you can type in the name for the click event that you want to create.

    We are going to let the Toolset create the event and generate a name for the event as well. To do so, select the Add push button. An event is created and added to the Defined Events panel.

    The naming convention for the event used by the Toolset is the window name (EGOLF SERVICES), an abbreviation for the object type, (PB, for push button), the name of the object, (SIGN UP), and the type of event, (CLICK). In this case, this gives us the name EGOLF SERVICES PB SIGN UP CLICK.

  4. Select the Close push button.
  5. The Button Action on the Push Button Properties panel now indicates that the push button Executes Click Event. Select the OK push button. With the cursor (which now resembles a rectangle), select a position on the window close to where we ultimately want the push button. Do not worry if it is not in the exact position, as we can reposition it later.
  6. If you have multiple adds turned on, we can continue and add the next push button. If not, from the Menu Bar, select Add, and then select Push Button…. Enter login for the Text, check the Is the Default Push Button check box, and then select the Events… push button.
  7. On the Event Processing dialog, select the Add push button to have the Toolset automatically create an event for us, and then select the Close push button.
  8. On the Push Button Properties dialog select the OK push button, and then place this push button below the first one. Do not worry so much about getting it exactly underneath the first one; we will position them more accurately later. If you have multiple adds turned on, select Cancel on the Push Button Properties panel after positioning the login push button.