CREATE CHECKBOX


PLBCMP GUI Only

square.png Properties

square.png Events

square.png Methods

square.png Instructions

 

The CREATE CHECKBOX statement initializes a CHECKBOX object variable. The statement format is:

 

 

[label]

CREATE

[{parent};]{checkbox}={pos},{name}[,{property list}...]

 

Where:

label

Optional. A Program Execution Label.

parent

Optional. A previously created WINDOW or PANEL object variable or pointer to a WINDOW or PANEL object on which the object is created.

checkbox

Required. The name of a previously defined CHECKBOX object variable or pointer to a CHECKBOX object.

pos

Required. The screen position of the object given as: {top}:{bottom}:{left}:{right}.

name

Required. A Character String Variable or Literal defining information that is placed beside the object.

property list

Optional. One or more of the object properties.

Flags Affected: NONE

Note the following:

  1. The {pos} screen coordinates for the object must be given and must be valid. Each of the coordinates may be a Numeric Variable, an Expression, or a decimal constant.

  2. The {name} operand defines the information that is placed beside the CHECKBOX. The Logical String of the character variable or character literal is used. Alt Keyboard Sequence for the CHECKBOX is allowed by placing an "&" character in the {name}. That is "Ex&ample" would define the name of the CHECKBOX as "Example" and the Alt A keyboard combination would select this CHECKBOX.

  3. If the optional {parent} parameter is not specified, the default window is used.

  4. The SETMODE *SUBTABFORENTER control alters the ENTER key behavior of a CHECKBOX.

 

 

See Also: Example Code, CREATE, Object Output Instructions

 



PL/B Language Reference CREATE BUTTON CREATE CHECKGRP