[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
WriteAT                                                        FastTTT



Purpose   To writes directly to the screen el quicko in specified
          colors.

Declaration    WriteAT(X,Y,F,B: integer; St: string);

          X is the X coord of first character in the string (1..80)
          Y is Y coord of string
          F is the foreground color (0..15)
          B is the background color (0..15)
          St is the text string

Uses FastTTT.

Remarks   This is the most frequently used procedure in the Toolkit.
          It is preferrable to Fastwrite (for most of us), because you
          can specify the foreground and background colors separately.

          This procedure cannot be used to write integers or reals -
          first convert the number to a string using the Int_to_Str
          function in the StrngTTT unit.



Example


               USES CRT,FASTTTT;
               CONST
                 HEADING = 'TOOLKIT';
               VAR
                 NAME: STRING;
               BEGIN
                 NAME := 'BOB ''TECHNOJOCK'' AINSBURY';
                 WRITEAT(1,25,YELLOW,RED,'PRESS F1 FOR HELP');
                 WRITEAT(36,1,LIGHTGREEN,BLACK,HEADING);
                 WRITEAT(1,5,LIGHTCYAN,BLACK,NAME);
                 WRITEAT(60,20,WHITE,BLACK,'HELLO '+'THERE!');
               END.


The example writes various strings to the screen, and illustrates that
string constants/variables and concatenated strings are valid.

See Also: Fastwrite PlainWrite WriteVert
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson