PANEL

PANEL N

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

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

ACTION

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

A PANEL has no border.

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

The PANEL is created at position (0,0) : that is TOP = 0 pixel and LEFT = 0 pixel, with dimensions: WIDTH = 185 pixels and HEIGHT = 105 pixels.

A PANEL can generate the events : ON_CLICK, ON_DOUBLE_CLICK.

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

SYNTAX: PANEL 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 PANEL is used to group system objects.

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 PANEL with default position and dimensions

panel 1

SEE ALSO

TOP

LEFT

WIDTH

HEIGHT

HINT

HINT_HIDE

COLOR

FULL_SPACE

ON_CLICK

ON_DOUBLE_CLICK