CHECK

CHECK N

CREATES A SYSTEM OBJECT CHECK AND ALLOCATES IT NUMBER N AS REFERENCE

  • Type: Command
  • Parameter: 1
  • Group: System Objects Creation

ACTION

The command CHECK N creates a system object CHECK, and allocates it a number N. The number N will be used to designate the CHECK.

The created CHECK can then be used through the appropriated commands.

The CHECK is created at position (0,0) : that is TOP = 0 pixel and LEFT = 0 pixel, with dimensions: WIDTH = 97 pixels and HEIGHT = 17 pixels.

A CHECK presents to the user a binary choice associated to an explaining text.

A CHECK can generate the events : ON_CLICK, ON_KEY_UP, ON_KEY_DOWN.

Remark: by default, the CHECK is created on the FORM number 0, but another FORM can be used. For that, create a FORM by FORM N, and send it all the commands by COMMAND_TARGET_IS N before creating the CHECK.

SYNTAX: CHECK N

  • N = system object number (integer or real). Must be greater than 0 and less than or equal to the allowed maximum number of system objects.

USE

  • A CHECK is used to present a binary choice to the user (Yes/No, True/False, On/Off, ...). The command CAPTION gives it an explaining text. Its state can be read by the function CHECKED(N).

ERROR

  • If number N is not a correct expression.
  • If number N exceeds the allowed maximum number of system objects.
  • If number N is less than or equal to 0.
  • If number N is already used for a system object number.

EXAMPLE

rem create a CHECK with default position and dimensions

check 1

rem display an explaining text (its number is used as reference)

caption 1,"Female"

SEE ALSO

CAPTION

TOP

LEFT

WIDTH

HEIGHT

HINT

HINT_HIDE

FULL_SPACE

COLOR

ON_CLICK

ON_KEY_UP

ON_KEY_DOWN