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


Syntax:        L_SETMAREA(<expN1>,<expn2>,<expN3>,<expN4>)


Purpose:       To set an area in which the mouse cursor will be
               confined.


Arguments:     <expN1> is the minimum horizontal (row) value in pixels
               of the specified area.

               <expN2> is the maximum horizontal (row) value in pixels
               of the specified area.

               <expN3> is the minimum vertical (column) value in
               pixels of the specified area.

               <expN4> is the maximum vertical (column) value in
               pixels of the specified area.

               If <expN1> or <expN3> is greater than <expN2> or
               <expN4> the mouse driver swaps them around ensuring
               that the intended area is obtained.


Returns:       -1 = Syntax Error.


Usage:         To convert ordinary text row and column values to pixel
               values multiply them by 8.

               This function is L_XRANGE() and L_YRANGE() combined.


Examples:      * Restrict mouse movement
               miny = 96
               maxy = 96
               minx = 0
               maxx = 640
               L_SETMAREA(miny, maxy, minx, maxx)


Language:      Assembler

See Also: L_XRANGE() L_YRANGE()

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