clickStack

Typefunction
DictionaryLCS
LibraryLiveCode Script
Syntax
the clickStack
clickStack()
Summary

Returns the name of the stack in which the user most recently clicked the mouse.

Introduced1.0
OSmac, windows, linux, ios, android
Platformsdesktop, mobile
Example
the clickStack
repeat until (the short name of the clickStack is "Icon Palette")
if the name of the clickStack is not the defaultStack then beep
Values
NameTypeDescription
return

The clickStack function returns the long name property of the stack that was last clicked.

RelatedKeyword: field
Property: backdrop, name, defaultStack
Control Structure: function
Object: stack
Function: mouseStack, value, clickField, clickLoc, clickCharChunk, clickLine, clickChunk
Glossary: property, return, stack window
Description

Use the clickStack function to determine which window the user clicked, or, in conjunction with the clickField, clickLine, or clickChunk, to determine which field was clicked.

If the user clicks a stack's title bar or border to bring it to the front, the value returned by the clickStack does not change. Only clicking in the stack window's content area changes the clickStack value.

If the user clicks the backdrop, the clickStack returns empty.

Tagsui