Getting Started


Optional exercises

This portion of the sample is your opportunity to navigate within VisualAge Generator Developer without step-by-step instructions while adding functionality to your view.

Setting the focus on a field

If you want to have the cursor in a particular field when the window is first displayed, complete the following step. In this example, you are going to set the focus (or put the cursor) in the Customer Number Text part.

Connect the openedWidget event of the Customer Information Window to the setFocus action of the Customer Number Text part.

Making a push button the default

A default push button allows the user to select the push button by pressing Enter or by using the mouse. You can define a default push button by completing the following step:

Open the settings for the FIND Push Button, click in the showAsDefault field, and select true.

Testing the application

The cursor should be in the Customer Number field and the Find push button should have an outline indicating that it is the default push button.

Be sure to save the part when you are finished.

If you did the optional exercises, your view should look like the one shown in Figure 99.

Figure 99. Customer Information Window

Figure cigui1 not displayed.


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