Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- CA-Clipper 5.3 . Technical Reference - <b>_gtsetmode()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 _gtSetMode()
 Change display mode to a specified number of rows and columns
------------------------------------------------------------------------------
 C Prototype

     #include "gt.api"
     ERRCODE _gtSetMode(
                         USHORT uiRows,
                         USHORT uiCols
                       )

 Arguments

     uiRows is the number of rows in the desired display mode.

     uiCols is the number of columns in the desired display mode.

 Returns

     _gtSetMode() returns zero if successful.  Any other value indicates an
     error.

 Description

     _gtSetMode() attempts to change the mode of the display hardware to
     match the number of rows and columns specified.  The change in screen
     size is reflected in the values returned by _gtMaxRow() and _gtMaxCol().

 Examples

     .  This example displays a message after successfully selecting
        43-line mode:

        #include "gt.api"
        .
        .
        .
           if ( _gtSetMode(43, 80) = 0 )
              _gtWriteAt( 0, 0, "43-line mode set", 16 );
        .
        .
        .

 Files  Library is CLIPPER.LIB, header file is Gt.api.


See Also: _gtMaxCol() _gtMaxRow() _gtScrDim()

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