Home THE HYPERCARD CENTER

HyperTalk Reference
Home » HyperTalk Reference » Functions

Note: This is a work in progress and will be formatting errors. 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.


Demo Script

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

Placeholders

point
HyperTalk DefinitionAn 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 DefinitionAn expression that evaluates to a specific screen location, in the form of a list with two integer elements. For example:

{ 91, 303 }clickLoc

Related Topics

« selectedLine | HyperTalk Reference | selectedText »


Version 0.7b1 (March 24, 2022)

Made with Macintosh

Switch to Modern View

Home
The HyperCard Center
HyperTalk Reference
Home » HyperTalk Reference » Functions

Note: This is a work in progress and will be formatting errors. 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.


Demo Script

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

Placeholders

point
HyperTalk DefinitionAn 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 DefinitionAn expression that evaluates to a specific screen location, in the form of a list with two integer elements. For example:

{ 91, 303 }clickLoc

Related Topics

« selectedLine | HyperTalk Reference | selectedText »

Version 0.7b1 (March 24, 2022)

Made with Macintosh

Switch to Retro View