Home THE HYPERCARD CENTER

HyperTalk Reference
Home » HyperTalk Reference »

Note: This is a work in progress and many formatting issues have been fixed. Read more about the project on the home page.

selectedLoc

the selectedLoc

Value returned: a point equal to the left and bottom offsets of the insertion point or the current selection in a field

It returns empty if there is no selection or if the insertion point is in the Message box.

Examples

set the bottom of button "Hiliter" to item 2 of the selectedLoc

Demo Script

on whereIsTheSelection
select word 2 of line 3 of me
answer "The selectedLoc is" && the selectedLoc
end whereIsTheSelection

Related Topics

Placeholders

point

HyperTalk Definition

An expression that evaluates to a specific screen location, in the form of two integers separated by a comma.

Item 1 of a point is the horizontal offset (in pixels). Item 2 of a point is the vertical offset (in pixels). For example:

91,303
"91,303"
"30" & "," & "100"
the clickLoc

AppleScript Definition

An expression that evaluates to a specific screen location, in the form of a list with two integer elements. For example:

{ 91, 303 }
clickLoc

HyperTalk Reference


Version 0.8b4 (July 4, 2025)

Made with Macintosh

Switch to Modern View