Predefined Control Statements

In addition to the general form of the CONTROL statement, there are special control statements for commonly used controls. These statements define the attributes of the child control windows that appear in the window.

Control statements have this general form:

 ─controltype─text─,─id─,─x─,─y─,─cx─,─cy───

 ───┬──────────────────┬────────────
     └──,───style───────┘

            ┌─────────────────────────┐
                                     │
 ───BEGIN────┬──DIALOG statement───┬─┴─END───
              ├──CONTROL statement──┤
              └──WINDOW statement───┘

The following six controls are exceptions to this form because they do not take a text field. See the LISTBOX control statement for the form of these six controls.

controltype

text (PCH) id (USHORT) x,y (SHORT) cx,cy (SHORT)

The x, y, cx, and cy fields can use addition and subtraction operators (+ and -). For example, 15 + 6 can be used for the x-field.

Styles can be combined using the (|) operator.

The control type keywords are shown below, with their classes and default styles:

AUTOCHECKBOX