WR GET CURSOR COORDINATES

4D - Documentation   Français   English   German   4D Write, Command Theme List   4D Write, Command Alphabetical List   4D Write, Constant Theme List   Back   Previous   Next

version 6.5.2


WR GET CURSOR COORDINATES (area; posHoriz; posVert; height)

ParameterTypeDescription
areaLongint4D Write area
posHorizRealHorizontal position in the page
posVertRealVertical position in the page
heightRealHeight of the cursor

Description

The WR GET CURSOR COORDINATES command returns the coordinates of the cursor in relation to the upper left corner of the page. These values are expressed in the current default unit for the document.

When the command is executed with a text or a picture selected in the area, two cases can occur:

If the selection has been made programmatically, the cursor is considered to be set at the end of the selection.

If the selection has been made manually, the cursor is considered to be set at the mouse button release location. For example, if a paragraph has been manually selected by dragging the mouse from the last line to the first line, the cursor position will be set at the beginning of the selection.

The height parameter returns the current height of the cursor. If only a picture is selected, the height of the picture is returned.

See Also

WR GET CURSOR POSITION.


4D - Documentation   Français   English   German   4D Write, Command Theme List   4D Write, Command Alphabetical List   4D Write, Constant Theme List   Back   Previous   Next