Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Clipper Tools One Guide - <b>wrow()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
WROW()

Syntax:     WROW()

Returns:    A numeric value.
            The coordinates of the top line of the window.

Usage:      This function can be used to determine the current position
            of the top line of the selected window.  It will make it possible
            to save the position of the line that had previously been shifted
            via the cursor keys or WMOVE().  It will then be possible to
            re-open this window at this position later.  WROW()
            can be used to establish the present position of the window,
            if it has been  shifted with "invalid" arguments via WMOVE(),
            as WMOVE() will adapt the "invalid" arguments automatically.
            The same also applies after using the WCENTER() function.
            Here, too it will only be possible to determine the new
            coordinates via WROW() and WCOL().

Note:       The values may also become negative.  The first line will then
            be located outside of the visible area.

Library:    CT1.LIB


--------------------------------- Example ------------------------------

Examples:   top = 10
            left_hand_side = 15
            WOPEN(top, left_hand_side, top + 10,;
                  left_hand_side + 40)

            ...
            ...                         && somebody shifts the window


            top = WROW()                && save the current
            bottom = WCOL()             && position of the top
                                        && left-hand corner and close
            WCLOSE()                    && the window.

            ...
            ...                         && other program section
            ...


            * open with the old value
            WOPEN(top, left_hand_side, top + 10,;
                  left_hand_side + 40)




See Also: WCOL() WMODE() WOPEN() WSELECT()

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