getCoordinates

getCoordinates(which: Integer;
               xx:    Integer output;
               yy:    Integer output): Boolean;

The getCoordinates method of the JadeTextEdit class returns the coordinates of the requested location (in pixels) relative to the client area of the text editor. The location can be outside the client area.

Use the which parameter to specify LOCAT_MOUSEPOINTER (0) for the cursor position or LOCAT_CARET (1) for the current caret position. If the coordinates are inside the client area, this method returns true.

The code fragment in the following example shows the use of the getCoordinates method.

vis := jteSource.getCoordinates(JadeTextEdit.LOCAT_MOUSEPOINTER, xx, yy);