SET THE COLOR OF CHARACTERS DISPLAYED BY THE SYSTEM OBJECT NUMBER N
ACTION
The command FONT_COLOR N,R,G,B set the color of the characters displayed by the system object number N.
The system object is of type : BUTTON, EDIT, MEMO, COMBO, ALPHA, FORM, LIST, PICTURE, CHECK, OPTION, SPIN, GRID, CONTAINER, MEMO_RICH, BUTTON_PICTURE, SCENE2D, PANEL, GRID_DRAW, CONTAINER_OPTION, TAB, SYNEDIT, CHART.
This command is not active on a BUTTON.
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:
FONT_COLOR N,R,G,B
USE ERROR EXAMPLE
rem create a MEMO
memo 1
rem fill it with a line
item_add 1,"Hello !"
rem color the line in red
font_color 1,255,0,0
FONT_COLOR
FONT_COLOR N,R,G,B
SEE ALSO
FONT_NAME
FONT_SIZE
FONT_BOLD
FONT_BOLD_OFF
FONT_ITALIC
FONT_ITALIC_OFF
FONT_UNDERLINE
FONT_UNDERLINE_OFF
FONT_STRIKE
FONT_STRIKE_OFF