SIZE Phrase (with Windows and Controls)

SIZE {IS} length [CELL  ]
     {= }        [CELLS ]
                 [PIXEL ]
                 [PIXELS]
  1. The SIZE phrase is used to set a window or control's width (length). Non-integer values are allowed. Note that each control type defines exactly how this value is interpreted.

    Typically, the length field represents the logical width of the control. Frequently, this is based on the size of the control's title or value. For example, an ENTRY-FIELD's width of 8 would specify a field large enough to enter eight (average size) characters. If this phrase is omitted, the control type employs its own method of determining a default size.

  2. The CELLS option of the SIZE phrase causes the WIDTH-IN-CELLS control style to be used. This means that the width of the control is specified exactly using the cell size of the owning window. For example:
    SIZE = 15 CELLS

    causes the control to have a width of 15 cells, where the exact width of a cell is inherited from the parent window.

  3. You may use the SIZE phrase with PIXELS when defining controls. This means that the width of the control is specified exactly using the pixel size of the owning window. For example:
    SIZE = 150 PIXELS

    causes the control to have a width of 150 pixels, where the exact width of a pixel is inherited from the parent window. Non-integer values are not allowed with pixels.