Error getting tags :
error 404Error getting tags :
error 404 selectedLoc | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
selectedLoc
Basics
Expander triangle
Type
Function
Syntax
the selectedLoc selectedLoc()
Introduced
1.0
Environment
Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
Security
None required
Summary
Returns the location of the top left corner of the text selection.
Examples

the selectedLoc
if the selectedLoc is not within the rect of me then unScrollField

Additional Comments
Expander triangle

Use the selectedLoc function to determine the location in the stack window where the text selection appears.

Value:

The selectedLoc function returns two positive integers separated by a comma.

Comments:

When text is selected, a box around it is filled with the hiliteColor or hilitePattern. The first item of the return value is the horizontal distance in pixels from the left edge of the stack to the left edge of this box. The second item of the return value is the vertical distance from the top edge of the stack to the top of the box.

If the text selection is in a scrolling field and the selection is not in the visible portion of the field, the selectedLoc function is adjusted by the amount of scroll.

User Comments
Expander triangle