CREATES A SYSTEM OBJECT OPTION AND ALLOCATES IT NUMBER N AS REFERENCE
ACTION
The command OPTION N creates a system object OPTION, and allocates it a number N. The number N will be used to designate the OPTION.
The created OPTION can then be used through the appropriated commands.
The OPTION is created at position (0,0) : that is TOP = 0 pixel and LEFT = 0 pixel, with dimensions WIDTH = 113 pixels and HEIGHT = 17 pixels.
An OPTION displays a choice. In a group of OPTIONs, only one of them is available.
An OPTION can generate the events : ON_CLICK, ON_KEY_UP, ON_KEY_DOWN.
Remark: by default, the OPTION 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 OPTION.
SYNTAX:
OPTION N
USE ERROR EXAMPLE
rem create an OPTION with default position and dimensions
option 1
rem display a text (its number is used as reference)
caption 1,"Female"
OPTION
OPTION N
SEE ALSO
CAPTION
TOP
LEFT
WIDTH
HEIGHT
HINT
HINT_HIDE
FULL_SPACE
COLOR
ON_CLICK
ON_KEY_UP
ON_KEY_DOWN