Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Force 4.0 Reference - getmaxcol() return the maximum screen column number http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 getmaxcol()         Return the maximum screen column number
------------------------------------------------------------------------------
 Declaration
   screen.hdr

 Syntax
   func uint getmaxcol extern

 Arguments
   None.

 Return
   Maximum screen column value.

 Description
   getmaxcol() returns the maximum value for screen columns (default: 79).
   Use of this function if you want to make your applications to respect the
   current active screen size at run-time.

   Screen column values are 0-based, i.e. the leftmost column is 0, and on an
   80-column screen, the rightmost column is 79.

 Example
   #define EXAMPLE_SCREEN
   #include example.hdr

   proc Test_getmaxcol
   // Display the time in row 1, starting 10 columns from the right border.
   @ 1, getmaxcol() - 10 ?? time()
   wait
   endproc

   proc main
   Test_getmaxcol()
   endproc

See Also: __max_col col() getmaxrow() setmaxrowcol()

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