4D v13WR GET CURSOR COORDINATES |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D Write v13
WR GET CURSOR COORDINATES
WR GET CURSOR COORDINATES
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:
The height parameter returns the current height of the cursor. If only a picture is selected, the height of the picture is returned. Starting with 4D version 2004.5, the Print form command can be used to print 4D Write areas. In principle, these areas are printed with a fixed height. The following example shows how to use the 4D print commands and the WR GET CURSOR COORDINATES command in order to vary the printing height of the 4D Write area according to its contents.
If(Form event=On Printing Detail)
$area:=WR New offscreen area |
PROPERTIES
Product: 4D
INDEX HISTORY
Modified: 4D Write 2004.5 SEE ALSO |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||