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>wlcol() window function</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  WLCOL()                                                    Window Function
 Purpose..: Return the window's left column text position
-------------------------------------------------------------------------------
 Syntax...: wLCol( [<uWin>] ) --> nLeftColTxt

 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 numeric position of the window's left column of text.

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

 Source...: WLCOL.PRG
-------------------------------------------------------------------------------
 Example..: ? wLCol()  // Displays the number for the left column
                       // of the text area of the window in focus.

            . The example uses the function to set up ten square
              overlapping windows, offset by two rows and columns.

             local n, TR, BR, LC, RC
             wNew( 1, 2, 2, 8, 8, "W+/BG" )
             ...
             for n = 2 to 10
                 TR := wTRow( n - 1 ) + 2
                 BR := wBRow( n - 1 ) + 2
                 LC := wLCol( n - 1 ) + 2
                 RC := wRCol( n - 1 ) + 2
                 wNew( str( n ), TR, LC, BR, RC, "W+/BG" )
                 ...

             next

See Also: wTRow() wBRow() wRCol() wRow() wCol() wCurRow() wCurCol()

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