text

text
options
compile message
menu      message
obj
scale
see
See also

text

text("ttt")

         Displays text ttt in (x,y) (0,0 default).
Options:
abs: Displays text even if no text is active.
col(r,g,b): text color (white default).
font("fff"): with the font "fff".
force: shows text even if no text is active.
format(x_max,y_max): the text is displayed in the frame (x,y,x+x_max,y+y_max) (by defaul, or if x_max = 0 and y_max = 0, the right edge and the bottom edge).
frame(r,g,b): with frame color (r,g,b) (white default).
frame again: separates words by vertical segments.
list(L): returns the name clicked in L with resizing capability (option no for no resizing).
mouse: returns 1 if you click in the text (read blocking), otherwise returns NIL.
normal: the option poi(x,y) coordinates are normalized (between 0.0 and 1.0).
number: returne the line number.
period(per,tim): the color of the rectangle option (r,r,b) and the option col (r, g, b) are exchanged all per images, it turns off after tim images (default is 0: never).
Note: In this case a text object text is created with the properties specified by the options.
poi(x,y): in (x,y).
poi(x1,y1,x2,y2): forces a window of length x2-x1 (default text length) and height (y2-y1) (text height by default).
rectangle(r,g,b): on (r,g,b) background (black default, if rr<0 no background).
mouse).
text(id)text("line1\nline2\n...linen")format(dx,dy): defines a scale identifer id displaying text line1\nline2\n...linen in the window size (dx1,dy1), if it exceeds the screen size a lift allows displacing the text.
In that case:
col(r1,g1,b1)col(r2,g2,b2): color of the text and the clicking text.
Special characters:
        \n: causes a new line
        \t: tabulation

Example:
text("This a red text\nscreen center")col(1,0,0)font("ROMAN_24");
        Writes the text on 2 lines, in red color and with the ROMAN_24 font.
Note: for big text use scale list.

Texts and scales calibration

text("ttt")poi(x,y) rectangle frame ...
(x, y): bottom left origin of the 1st character.
d=dim font; d[0]=Fonte_x=character width, d[1]=Fonte_y=character height, d[2]=gap (top and bottom, default 2) between texte and frame, d[3]= gap between 2 frames (4 default).
D_Fonte_y = Fonte_y + 2 * Fonte_e is the rectangle (or frame) height surrounding the text.
(x, y1 = y - Fonte_y - Fonte_e): rectangle (or frame) top-left corner.
(x1 = x + 3, y)     ttt
(x, y2 = y + Fonte_e): rectangle and texte bottom-left corner. Do:
d=dim scale;Dy1=d[0];Dy2=d[1];
scale ... poi(x1,y,x2,y+Dy1)...;y+=Dy2;
scale ... poi(x1,y,x2,y+Dy1);y+=Dy2;

text("ttt")poi(x1,y);... etc...

text(compile message("mes"))

         If the string is passed to text is compile message("mes"), with mes=commands line, it is evaluated, which can display variable parameters, see demo1_compile.func.
Legal values ??of font "fff":
8_BY_13
9_BY_15
ROMAN_10
ROMAN_24
HELVETICA_10
HELVETICA_12
HELVETICA_18
STROKE_ROMAN
Par défaut f=9_BY_15

text menu

text("ttt")menu("MEN")

        Displays the text "ttt" above the menu named MEN.
Options:
above (default).
below.
left.
right.

text message

text message(id)

        Returns the text of message id.

text message(id)="..."

        Changes this text.

text obj

text obj(id)

        Returns the associated text to object obj id.

text obj(id)="..."

        Changes this text.
Example:
text vol 1="Column number 1\n"
Note:
This text is used as a comment and appears when the object is published.

text scale

text scale("sss")input

        Returns the associated text to scale scale("sss")input.

text scale("sss")input ="..."

        Changes this text.
text scale("sss")input =""; removes the text.

text see

text see

        Returns the textual content of see.

text see="contenu"

        Changes this content.

See also:

dim text