palette | |||||||
Type | command | ||||||
Dictionary | LCS | ||||||
Library | LiveCode Script | ||||||
Syntax |
| ||||||
Summary | Opens a stack in a palette window. | ||||||
Introduced | 1.0 | ||||||
OS | mac, windows, linux | ||||||
Platforms | desktop, server | ||||||
Parameters |
| ||||||
Example |
| ||||||
Related | Property: hidePalettes, activatePalettes, lockMessages, layer Message: openCard, closeStack, closeCard, closeBackground, openStack, openBackground Command: topLevel, lock messages, drawer, modeless, palette Object: stack Glossary: property, current card, palette, execute, message, editable window, command | ||||||
Description | Use the palette command to display a stack in a palette window. Use palette windows to display tools or information about main windows. A palette window behaves like an ordinary window, except that its appearance is different, with a narrower title bar. If the raisePalettes property is set to true, any palettes float in their own layer, above all ordinary windows. palettes cannot be resized or edited. To edit a palette, use the topLevel command to display it in an editable window. The palette command closes the stack and reopens it as a palette, so closeStack and openStack, closeCard and openCard, and (if applicable) closeBackground and openBackground messages are sent to the current card as a result of executing this command. Use the lock messages command before executing palette if you want to prevent the close messages from being sent; the open messages are sent regardless of the setting of the lockMessages property. If the stack is already displayed as a palette, the palette command does not close and reopen it. The Browse tool is always used in palette windows, regardless of the current setting of the tool property. | ||||||
Tags | windowing |