moveStack

Sent to the current card when the user moves the stack window.

# Metadata

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

# Syntax

moveStack pNewStackH, pNewStackV

# Params

- pNewStackH : The horizontal distance in pixels from the left of the screen to the left edge of the stack. - pNewStackV : The vertical distance in pixels from the top of the screen to the top edge of the stack.

# Examples

on moveStack finalLeft, finalTop set the right of stack Palette to finalLeft - 5 set the top of stack Palette to finalTop end moveStack

# Description

Handle the moveStack message if you want to respond to movement of the stack window.

The moveStack message is sent only if the user moved the stack window. This message is not sent when a handler moves the window by changing its location, rectangle, or other properties.

>*Known issue:* Currently errors in moveStack and resizeStack are > ignored, as this was causing a hang in the IDE.

# Tags

# See

- **property:** properties, rectangle, location - **message:** moveControl, resizeControl, resizeStack - **command:** grab - **glossary:** handler, current card, message, stack window, rectangle