|
|
|
|
|
<Word Processing>.InfoXY (Function) In french: <Traitement de texte>.InfoXY For a given position (coordinates of a point) in a Word Processing control, returns one of the following: - the number of the corresponding page,
- the corresponding X-position (in mm),
- the corresponding Y-position (in mm).
nPage is int
nPage = TT_MonDocument.InfoXY(docPageNumber, MouseXPos(), MouseYPos())
Trace("Numéro de la page : ", nPage)
rPosX is real
rPosX = TT_MonDocument.InfoXY(docXCoord, MouseXPos(), MouseYPos())
Trace("Pos X en mm : ", rPosX)
rPosY is real
rPosY = TT_MonDocument.InfoXY(docYCoord, MouseXPos(), MouseYPos())
Trace("Pos Y en mm : ", rPosY)
Syntax
<Result> = <Word Processing control>.InfoXY(<Type of information> , <X> , <Y>)
<Result>: Real Requested information. <Word Processing control>: Control name Name of the Word Processing control to use.
If this parameter corresponds to an empty string (""), the control to which the current event belongs will be used. <Type of information>: Integer constant Type of information requested: | | docOriginScreen | By default, (0,0) corresponds to row 1, column 1 of the Word Processing control (scrollbars located at the origin). If the docOriginScreen constant is combined with the previous constants, (0,0) corresponds to the origin of the screen. This constant cannot be used on its own. | docPageNumber | Number of the page that contains the specified position. | docXCoord | X-coordinate of the specified position on the page (expressed in millimetres). | docYCoord | Y-coordinate of the specified position on the page (expressed in millimetres). |
<X>: Integer X-coordinate (in pixels) to be analyzed. This coordinate is relative to the control (if the docOriginScreen constant is not specified). <Y>: Integer Y-coordinate (in pixels) to be analyzed. This coordinate is relative to the control (if the docOriginScreen constant is not specified). Business / UI classification: Business Logic
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|