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>wcol()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
WCOL()

Syntax:     WCOL()

Returns:    A numeric value.
            The coordinates of the left hand column of the window.

Usage:      This function can be used to determine the current position
            of the left-hand column of the selected window.  This will
            allow you to save the position of a window that has been
            moved via the cursor keys.  Later, the window can be opened
            in the same position.

Note:       The return value may be negative.  The first column is
            actually located outside of the visible screen.

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
            ...


            WCLOSE()

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



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

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