DIGIT1

DIGIT1 N

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

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

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

  • 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 DIGIT1 is used to display a digit or a digit and a point to simulate an electronic device.

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 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."

SEE ALSO

CAPTION

TOP

LEFT

WIDTH

HEIGHT

FULL_SPACE