Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FreshWin (c) Fresh Technologies - <b>wcurcol() window function</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  WCURCOL()                                                  Window Function
 Purpose..: Return the relative window column
-------------------------------------------------------------------------------
 Syntax...: wCurCol( [<uWin>] ) --> nCol

 Arguments: [<uWin>] = the string identifier of the window
                       OR the reference to the window structure
                       returned as an array by wNew() or wArray().
                       If not passed, the function will operate on
                       the window in focus.

 Returns..: <N> The relative screen column position.

 Remark...: The function works whether the window is open or not.

 Source...: WCOL.PRG
-------------------------------------------------------------------------------
 Example..: . The example uses wCurCol() in conjunction with
              wCurRow() to display their values. It then prints the
              values of wCol() and wRow() to exemplify the difference.

            ...
            wNew  ( "MyWin", 2, 4, 21, 21 )
            ...
            wOpen ( "MyWin" )

            wPos( , 0, 5 )
            ? wCurRow()    // prints 0
            ? wCurCol()    // prints 5
            ? wRow()       // prints 2 ( 2 + 0 )
            ? wCol()       // prints 9 ( 4 + 5 )

See Also: wRow() wSay() wCurRow()

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