Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Watcom C Library Reference - <u>synopsis:</u> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Synopsis:
    #include <graph.h>
    void _FAR _settextpath( short path );

Description:
    The _settextpath function sets the current text path to have the value
    of the path argument.  The text path specifies the writing direction of
    the text displayed by the  _grtext function.  The argument can have one
    of the following values:

    _PATH_RIGHT
        subsequent characters are drawn to the right of the previous
        character

    _PATH_LEFT
        subsequent characters are drawn to the left of the previous
        character

    _PATH_UP
        subsequent characters are drawn above the previous character

    _PATH_DOWN
        subsequent characters are drawn below the previous character

    The default value of the text path is _PATH_RIGHT.

Returns:
    The _settextpath function does not return a value.

Example:
    #include <conio.h>
    #include <graph.h>

    main()
    {
        _setvideomode( _VRES16COLOR );
        _grtext( 200, 100, "WATCOM" );
        _settextpath( _PATH_DOWN );
        _grtext( 200, 200, "Graphics" );
        getch();
        _setvideomode( _DEFAULTMODE );
    }

    produces the following:



Classification:
    PC Graphics

Systems:
    DOS, QNX

See Also:
    _grtext, _gettextsettings

See Also: _gettextsettings

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