moveStack

Typemessage
DictionaryLCS
LibraryLiveCode Script
Syntax
moveStack <pNewStackH>, <pNewStackV>
Associationscard
Summary

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

Introduced1.0
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Parameters
NameTypeDescription
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.

Example
on moveStack finalLeft, finalTop
  set the right of stack Palette to finalLeft - 5
  set the top of stack Palette to finalTop
end moveStack
RelatedProperty: properties, rectangle, location
Message: moveControl, resizeControl, resizeStack
Command: grab
Glossary: handler, current card, message, stack window, rectangle
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.

Tagswindowing