SPIN

SPIN N

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

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

ACTION

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

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

The SPIN is created at position (0,0) : that is TOP = 0 pixel and LEFT = 0 pixel, with dimensions WIDTH = 121 pixels and HEIGHT = 22 pixels.

A SPIN displays an integer value and provides a mean to quickly increment or decrement The value.

A SPIN can generate the event : ON_CLICK, ON_DOUBLE_CLICK.

Remark: by default, the SPIN 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 SPIN.

SYNTAX: SPIN 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 SPIN is used to quickly increment or decrement a displayed value.

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 SPIN

spin 1

rem set the maximum value

max 1,10

rem set the minimum value

min 1,10

SEE ALSO

TOP

LEFT

WIDTH

HEIGHT

HINT

HINT_HIDE

FULL_SPACE

MIN

MAX

ON_CLICK

ON_DOUBLE_CLICK