Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Library for Clipper - <b>l_text()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
                                 L_TEXT()


Syntax:        L_TEXT(<expC>, <expN1>, <expN2>, <expN3>, <expN4>,
               <expN5>)


Purpose:       To put graphics text on the screen with specified
               foreground and background colors.


Arguments:     <expC> is the text string which is to be placed on the
               screen.

               <expN1> is the number which specifies whether text is
               to be horizontal or vertical 1 for horizontal and 0 for
               vertical text.

               <expN2> is the x co-ordinate of the starting position
               of the text.

               <expN3> is the y co-ordinate of the starting position
               of the text.

               <expN4> is the color code for the foreground color of
               the text.

               <expN5> is the color code for the background color of
               the text.


Returns:       Nothing.


Usage:         Used for writing text on the screen while it is in a
               graphics mode. L_TSIZE() has to be called before
               L_TEXT() in order to specify the size of the text to be
               used.


Examples:      string = "Planet Software"       && initialize string
               h_v = 1                          && horizontal text
               startx = 100                     && x coord of start of text
               starty = 100                     && y coord of start of text
               fgd = 4                          && red foreground
               bkgd = 15                        && white background

               L_TSIZE(2)                       && set size of text
               L_GMODE(13)                      && set graphics mode
                                                && write text on screen
               L_TEXT(string,h_v,startx,starty,fgd,bkgd)


Language:      C

See Also: L_LEGEND() L_STROKE() L_TSIZE()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson