Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Borland C++ 2.x ( with Turbo C ) - <b>outtextxy() output a string to screen at specified position</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 outtextxy()             Output a String to Screen at Specified Position

 #include   <graphics.h>

 void far   outtextxy(x,y,tstring);
 int        x;
 int        y;
 char far   *tstring;

    outtextxy() outputs graphics text at the specified position ('x','y')
    relative to the current viewport.  The text is output using the
    current text font, text direction, character size and text
    justification settings. (See settextstyle() and settextjustify() for
    more information regarding these text attributes.)


    Returns:    Nothing.

   -------------------------------- Example ---------------------------------

    The following statements output a string of text after setting the
    text font, direction and character size.

           #include <graphics.h>
           #include <conio.h>

           main()
           {
               int gdriver = DETECT;
               int gmode;

               initgraph(&gdriver,&gmode,"");
               settextstyle(GOTHIC_FONT,HORIZ_DIR,2);
               outtextxy(200,100,"ENGLISH LITERATURE");
               getch();
               closegraph();
           }


See Also: gettextsettings() textheight() outtextxy()

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