resizeStack | ||||||||||||||||
Type | message | |||||||||||||||
Dictionary | LCS | |||||||||||||||
Library | LiveCode Script | |||||||||||||||
Syntax |
| |||||||||||||||
Associations | card | |||||||||||||||
Summary | Sent to the current card when the stack window is resized. | |||||||||||||||
Introduced | 1.0 | |||||||||||||||
OS | mac, windows, linux, ios, android | |||||||||||||||
Platforms | desktop, server, mobile | |||||||||||||||
Parameters |
| |||||||||||||||
Example |
| |||||||||||||||
Related | Property: maxWidth, width, height, minHeight, resizable, lockScreen, properties, vScroll Message: moveStack, resizeControl, unIconifyStack Command: revChangeWindowSize, lock screen Object: stack Glossary: object, property, current card, stack window, handler, message, parameter, command, trap | |||||||||||||||
Description | Handle the resizeStack message if you want to update the position of objects or do other tasks when the stack window changes size. The resizeStack message is sent when the user resizes the stack by dragging its size box. It is also sent if a handler changes the size of the stack by changing its properties (width, height, and so on). The resizeStack message is sent after the resizing is finished. This means that you cannot prevent a stack's size from being changed by trapping this message. The pOldWidth and pOldHeight for each resizeStack message is the same as the pNewWidth and pNewHeight for the previous resizeStack. The stack's original width and height are passed only with the first resizeStack message sent during a resize operation. The screen is locked while a resizeStack handler is running, so it is not necessary to use the lock screen command to prevent changes from being seen. (However, the lockScreen property is not set to true.)
*Known issue:* Currently errors in moveStack and resizeStack are ignored, as this was causing a hang in the IDE. | |||||||||||||||
Tags | windowing |