•  Back 
  •  Main 
  •  Index 
  •  Tree View 
  •  Cross references 
  •  Help 
  •  Show info about hypertext 
  •  View a new file 
Topic       : The GFA-Basic Compendium
Author      : GFA Systemtechnik GmbH
Version     : GFABasic.HYP v2.98 (12/31/2023)
Subject     : Documentation/Programming
Nodes       : 899
Index Size  : 28056
HCP-Version : 3
Compiled on : Atari
@charset    : atarist
@lang       : 
@default    : Document not found
@help       : Help
@options    : +g -i -s +z
@width      : 75
@hostname   : STRNGSRV
@hostname   : CAB     
@hostname   : HIGHWIRE
@hostname   : THING   
View Ref-FileTEXT x,y[,l],expression

x, y, l: iexp
expression: aexp or sexp

Displays the text in 'expression' starting at the point with the graphic
coordinates x,y. This point refers to the bottom left corner of the first
character of the expression. The parameter 'l' sets the length of the text in
pixels. With 'l' as positive, the spacing between characters will be adjusted
to achieve the length, whereas with 'l' negative, the length is achieved by
altering the size of the spaces between words. When 'l' is zero, the unchanged
text is displayed.

Using DEFTEXT, various attributes of text can be altered. DEFTEXT however, only
works with the TEXT command and with the PRINT command when used inside a
window.

Example:

    s$="this is an example"
    FOR i=0 TO 23
      DEFTEXT 1,i,0,6
      TEXT 50,i*16+16,s$
    NEXT i
    DEFTEXT 1,0,0,13
    TEXT 350,50,350-50
    TEXT 350,100,s$
    TEXT 350,150,250,s$
    TEXT 350,200,-250,s$
    ~INP(2)

--> Writes text in various forms on the screen and then waits for a key to be
    pressed.

Memo: Clips text off at 119 characters.

v_gtext()+, v_justified()+, vst_alignment()+