clickStack

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

# Metadata

Platforms: desktop, mobile OS: mac, windows, linux, ios, android Introduced: 1.0 Security:

# Syntax

the clickStack

# Examples

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

# 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 content area changes the clickStack value.

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

# Tags

ui,

# See

- **keyword:** field - **property:** backdrop, name, defaultStack - **control structure:** function - **object:** stack - **function:** mouseStack, value, clickField, clickLoc, clickCharChunk, clickLine, clickChunk - **glossary:** property, return, stack window