FONT_SIZE

FONT_SIZE N,S

SET THE SIZE OF CHARACTERS DISPLAYED BY THE SYSTEM OBJECT NUMBER N

  • Type: Command
  • Parameters: 2
  • Group: Font

ACTION

The command FONT_SIZE N,S set the size 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.

SYNTAX: FONT_SIZE N,S

  • 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.
  • S = size of characters (integer or real)

USE

  • The command FONT_SIZE is used to set the size of the text displayed by a system object.

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 the system object number N does not exist.
  • If number N is not a system object of the 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.
  • If the size S is less than or equal to 0.
  • If the size S is not a correct expression.

EXAMPLE

rem create a MEMO

memo 1

rem fill it with a line

item_add 1,"Hello !"

rem wait for 1 second

wait 1000

rem put the line in size 20

font_size 1,20

SEE ALSO

FONT_NAME

FONT_COLOR

FONT_BOLD

FONT_BOLD_OFF

FONT_ITALIC

FONT_ITALIC_OFF

FONT_UNDERLINE

FONT_UNDERLINE_OFF

FONT_STRIKE

FONT_STRIKE_OFF