Inserting controls in a window

You insert controls in a window in the Window painter.

StepsTo insert a control in a window:

  1. Select Insert>Control from the menu bar, or display the Controls drop-down toolbar on the PainterBar.

  2. Select the control you want to insert.

    If you selected User Object, the Select Object dialog box displays, listing all user objects defined for the application. In this case, select the library and the user object you want to insert, and click OK.

  3. In the Layout view, click where you want the control.

After you insert the control, you can size it, move it, define its appearance and behavior, and create scripts for its events.

Duplicating controls

To place multiple controls of the same type in a window, place a control in the window and make sure it is selected. Then press Ctrl+T or select Duplicate from the pop-up menu once for each duplicate control you want to place in the window. The controls are placed one under another. You can drag them to other locations as needed.

Inserting controls with undefined content

When you insert a DataWindow, Picture, PictureButton, or PictureHyperLink control in a window, you are inserting only the control. You see only an empty box for a DataWindow control, the dotted outline of a box for a Picture or a PictureHyperLink control, and a large button resembling a CommandButton for a PictureButton control. You must specify a DataWindow object or picture later.