palette

Typecommand
DictionaryLCS
LibraryLiveCode Script
Syntax
palette <stack>
Summary

Opens a stack in a palette window.

Introduced1.0
OSmac, windows, linux
Platformsdesktop, server
Parameters
NameTypeDescription
stack

Any stack reference.

Example
palette stack "Tools"
palette the defaultStack
RelatedProperty: 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.

Tagswindowing