|
|
|
|
<Looper>.InfoXY (Function) In french: <Zone répétée>.InfoXY Used to find out the element located at a given position in the Looper control (X, Y). This element can be: - a row,
- a control,
Versions 24 and later a break.
This function can be used on Looper controls based on a data file or populated programmatically. New in version 15 Versions 17 and later // Click on the left mouse button x is int = MouseXPos() y is int = MouseYPos() nRow is int = LOOP_Looper1.InfoXY(liLineNumber, x, y) Trace("You've clicked the row: " + nRow) Syntax
<Result> = <Looper control>.InfoXY(<Type of information> , <X> , <Y>)
<Result>: Character string or integer - Requested information.
- An empty string ("") if no control is found at specified location.
- -1 if no row number is found at specified location.
<Looper control>: Control name Name of the Looper control to be used. <Type of information>: Constant Type of information requested: | | Versions 24 and laterliBreakName | Name of the break at (x,y). | liControlName | Name of the control found at (x, y). | liLineNumber | Number of the row found at (x, y). | liOriginScreen | By default, (0,0) corresponds to row 1, column 1 (the scrollbars being located at the origin). If the liOriginScreen constant is combined with the previous constants, the (0,0) point corresponds to the origin of the screen. This constant cannot be used on its own. |
<X>: Integer X-coordinate (in pixels) to be analyzed. This coordinate is given in relation to the Looper control (if the liOriginScreen constant is not specified). <Y>: Integer Y-coordinate (in pixels) to be analyzed. This coordinate is given in relation to the Looper control (if the liOriginScreen constant is not specified).
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|