GRID_FIXED_COLOR

GRID_FIXED_COLOR N,R,G,B

SET THE FIXED PART COLOR OF THE GRID NUMBER N

  • Type: Command
  • Parameters: 4
  • Group: System Objects

ACTION

The command GRID_FIXED_COLOR N,R,G,B set the color of the fixed part of the system object GRID number N.

The color is the color resulting of the addition of the 3 specified primary components: red (R), green (G) and blue (B).

The intensity of each primary component can vary from 0 to 255. (0 = no color, 255 = full intensity)

Remark: when all the 3 primary components are 0, the result color is black (no color), when all the 3 primary components are 255, the result color is white (addition of the 3 primary colors at maximum intensity).

Recall:

- yellow color (red + green) when B = 0

- gray color when R=G=B

- violet color (red + blue) when G = 0

- black color when R=0, G=0, B=0

- white color when R=255, G=255, B=255

SYNTAX: GRID_FIXED_COLOR N,R,G,B

  • 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.
  • R = Red component value (integer or real) of the result color.
  • G = Green component value (integer or real) of the result color.
  • B = Blue component value (integer or real) of the result color.

USE

  • The command GRID_FIXED_COLOR is used to color the fixed part of a GRID.

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 0.
  • If system object number N does not exist.
  • If number N is not the number of a system object : GRID.
  • If R or G or B is less than 0 or greater than 255.
  • If R or G or B is not a correct expression.

EXAMPLE

rem create a GRID with its default position and dimensions

grid 1

rem change its size (its number is used as reference)

width 1,500

height 1,180

rem set 6 rows

grid_row 1,6

rem with 2 fixed rows

grid_row_fixed 1,2

rem height of the rows

grid_row_height 1,45

rem set 7 columns

grid_column 1,7

rem with 2 fixed columns

grid_column_fixed 1,2

rem width of columns

grid_column_width 1,100

rem its fixed part is in red color

grid_fixed_color 1,255,0,0

SEE ALSO

GRID

GRID_CLEAR

GRID_COLUMN

GRID_COLUMN()

GRID_COLUMN_DELETE

GRID_COLUMN_FIXED

GRID_COLUMN_FIXED()

GRID_COLUMN_INSERT

GRID_COLUMN_SIZING_OFF

GRID_COLUMN_SIZING_ON

GRID_COLUMN_WIDTH

GRID_COLUMN_WIDTH()

GRID_LOAD

GRID_ONE_COLUMN_WIDTH

GRID_ONE_COLUMN_WIDTH()

GRID_ONE_ROW_HEIGHT

GRID_ONE_ROW_HEIGHT()

GRID_READ$()

GRID_ROW

GRID_ROW()

GRID_ROW_DELETE

GRID_ROW_FIXED

GRID_ROW_FIXED()

GRID_ROW_HEIGHT

GRID_ROW_HEIGHT()

GRID_ROW_INSERT

GRID_ROW_SIZING_OFF

GRID_ROW_SIZING_ON

GRID_SAVE

GRID_WRITE

GRID_X_TO_COLUMN()

GRID_Y_TO_ROW()