STYLE Phrase and Style-Name

STYLE {IS} style-flags
      {= }

{style-name} ...
  1. In the STYLE phrase, style-flags is a numeric field that holds a value that specifies the styles to apply to the control. Each control type defines its own set of styles and how the style-flags value is interpreted. style-flags holds the sum of the numbers that represent the desired styles. Each style's identifying number is defined in the file controls.def. If style-flags is omitted, the default style attributes are applied to the control.
  2. A style-name is the name of a valid style for the type of control being acted upon. For example, some of the styles that apply to a radio-button include: BITMAP, FRAMED, and NOTIFY. Each style-name causes that style to be applied to the control.
  3. You may use both the STYLE phrase and individual style-names for a particular control. The effect is to add the set of specified styles together. You would typically use the STYLE phrase to specify styles that may change at runtime, and style-name for those styles that are fixed.

    For more information about control styles, and the STYLE and style-name phrases, see Styles and Special Properties in ACUCOBOL-GT User Interface Programming.