CREATES A SYSTEM OBJECT DIGIT1 AND ALLOCATES IT NUMBER N AS REFERENCE
ACTION
The command DIGIT1 N creates a system object DIGIT1, and allocates it a number N. The number N will be used to designate the DIGIT1.
The created DIGIT1 can then be used through the appropriated commands.
The DIGIT1 is created at position (0,0) : that is TOP = 0 pixel and LEFT = 0 pixel, with dimensions WIDTH = 50 pixels and HEIGHT = 80 pixels.
A DIGIT1 is a mean for the user to display with CAPTION a digit or a digit and a point to simulate an electronic design. A DIGIT1 is green by default, but its color can be changed with COLOR.
A DIGIT1 cannot generate an event.
Remark : by default, the DIGIT1 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 DIGIT1.
SYNTAX:
DIGIT1 N
USE ERROR EXAMPLE
rem create a DIGIT1 with default position and dimensions
digit1 1
caption 1,"0":wait 1000
caption 1,"1.":wait 1000
caption 1,"2":wait 1000
caption 1,"3.":wait 1000
caption 1,"4":wait 1000
caption 1,"5.":wait 1000
caption 1,"6":wait 1000
caption 1,"7.":wait 1000
caption 1,"8":wait 1000
caption 1,"9."
DIGIT1
DIGIT1 N
SEE ALSO
CAPTION
TOP
LEFT
WIDTH
HEIGHT
FULL_SPACE