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>wbrow() window function</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  WBROW()                                                    Window Function
 Purpose..: Return the bottom row text position of the window
-------------------------------------------------------------------------------
 Syntax...: wBRow( [<uWin>] ) --> nBotTxtRow

 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 absolute position of the window's bottom row of text.

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

 Source...: WBROW.PRG
-------------------------------------------------------------------------------
 Example..: .  ? wBRow()  // Displays the number for the bottom text
                          // row of the window in focus.

            . The example uses the function to set up ten square
              overlapping windows, offset by two rows and columns. Note
              that wNew() will convert the name of the first window
              from 1 to "1".

             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() wLCol() wRCol() wRow() wCol()

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