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>wrow() window function</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  WROW()                                                     Window Function
 Purpose..: Return the real row co-ordinate given that for the window
-------------------------------------------------------------------------------
 Syntax...: wRow( [<uWin>[, <nRow>]] ) --> nABSRow

 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.

 Arguments: [<nRow>] = relative row position in the window
                       to which to move the cursor. If this parameter
                       is not specified, it defaults to 1 plus the last
                       value passed to wRow(). If it is the first time that
                       wRow() is called, the default is the first
                       window row.

 Returns..: <N> The absolute ( real ) screen row position.

 Remark...: Returns the the absolute screen row from the
            relative position indicated. If no relative row
            position was passed, the current absolute row position
            incremented by one of the window is returned.

 Source...: WROW.PRG
-------------------------------------------------------------------------------
 Example..: . The example uses wRow() in conjunction with wCol()
              to display the cursor position on the screen.

            wOpen ( "MyWin" )
            @ wRow( , 1), wCol( , 0) say "Window Row 1, Column 0"
            @ wRow( , 1), wCol( , 1) say "Window Row 1, Column 1"
            @ wRow( , 2), wCol( , 2) say "Window Row 2, Column 2"
            @ wRow( , 3), wCol( , 1) say "Window Row 3, Column 1"
            @ wRow( , 3), wCol( , 2) say "Window Row 3, Column 2"

 Note.....: This is one of FreshWin's most powerful features as
            it creates a virtual windowing system. wRow() and wCol()
            are to be treated as replacements for the x and y of
            @ x, y. If the row position sent to wRow() is outside
            of the windows boundries, wRow() will default to row
            position 1.

See Also: wCol() wSay() wCurRow() wCurCol()

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