IDE DialogToCDocOverviewCGDocRelNotesIndexPermutedIndex
Allegro CL version 6.2
Unrevised from 6.1

Form

Form windows are used to design application dialogs and windows. You can set attributes (background-color, dimensions, title, etc.) using the inspector of a form (see the Inspect dialog) and these attributes will apply to the window created from the form (some, such as dimensions and background-color, will apply to the form as well, but others, such as device, do not make sense applying to a form. (The class attribute of a form, accessed by device, tells the class of the window associated with the form. The class of the form itself is the form class.)

As you modify a form, code for creating a dialog with attributes specified by the form is automatically written and placed in the bil file associated with the current project. When the project is run, that code is used to create the window designed by the form.

Special arrow key behavior in form windows when a control is selected

The arrow keys can be used on form windows to move the selected control(s) by single pixels. In addition to allowing for more precise positioning generally, this is also a quick way to override the stickiness that affects dragging the controls.

Red lines are drawn to show the alignment of the moving controls at each step. (All control alignments are shown when the Form | Show Alignment command is chosen. When you move using the arrow keys, alignment lines are drawn for the moving controls only.)

If the control key is held down while the arrow keys are pressed, then the control(s) are resized rather than moved, with the right or bottom edges of the control moving in the direction indicated by the arrow key.

If the alt key is held down, then the control(s) are moved by ten pixels rather than by one or resized (when the control key is also held down) by ten pixels rather than by one.

Also, the tab key can now be used on form windows to move the selection to the next control in the tab order (and shift-tab moves to the previous control); this also highlights the alignment for the tabbed-to control.

Enter key displays the Inspector window when control is selected

And the main ENTER key will inspect the selected control and select the inspector window. This is mainly useful for unburying the inspector, since selecting a control on a form inspects it.

See Chapter 6 of the IDE User Guide for information on forms. In the description, we provide some general information only.


Copyright (c) 1998-2002, Franz Inc. Oakland, CA., USA. All rights reserved.
Documentation for Allegro CL version 6.2. This page was not revised from the 6.1 page.
Created 2002.2.26.

ToCDocOverviewCGDocRelNotesIndexPermutedIndex
Allegro CL version 6.2
Unrevised from 6.1