decorations | ||||||||||
Type | property | |||||||||
Dictionary | LCS | |||||||||
Library | LiveCode Script | |||||||||
Syntax |
| |||||||||
Associations | stack | |||||||||
Summary | Specifies the window controls and appearance of a stack window. | |||||||||
Introduced | 1.0 | |||||||||
Changes | The "close", "system", "noShadow", and "metal" options were introduced in version 2.1. | |||||||||
OS | mac, windows, linux | |||||||||
Platforms | desktop, server | |||||||||
Example |
| |||||||||
Values |
| |||||||||
Related | Keyword: default, minimize, maximize, shadow, title, string Property: metal, windowShape, fullscreen, draggable, properties, style, zoomBox, shadow, closeBox, minimizeBox, longWindowTitles, decorations, systemWindow, externals Message: closeStackRequest, unIconifyStack Function: stacks Glossary: property, menu bar, WDEF, stack window, cross-platform, Windows, OS X, close box, title bar, Mac OS, Unix, system window Object: stack | |||||||||
Description | Use the decorations property to change the appearance of windows. You can specify one or more of the following decorations: * title: Shows the window's title bar * minimize: Shows the minimize (iconify) box in the title bar * maximize: Shows the maximize (zoom) box in the title bar * close: Shows the close box in the title bar * menu: Shows the menu bar in the window (Unix and Windows only) * system: Shows the window as a system window (OS X, Unix, and Windows only) * noShadow: Remove the window's drop shadow (OS X only) * metal: Shows the window with a textured appearance (OS X only)
*Cross-platform note:* On Mac OS systems, the "system" option has no effect. Setting a stack's decorations to empty removes the entire title bar, along with the window borders. Setting a stack's decorations to "default" gives it appropriate decorations for its style. If the style is "topLevel", the window includes all the decorations (title bar, menu bar [on Unix and Windows systems], close box, minimize box, maximize box) by default. Otherwise, the window includes a title bar by default. The decorations property interacts with the closeBox, minimizeBox, metal, shadow, systemWindow, and zoomBox properties. Setting any of these properties to true changes the decorations property to include the corresponding option, and including any of the "close", "minimize", "metal", "noShadow", "system", and "maximize" options in a stack's decorations sets the corresponding property to true.
This applies only to the decorations property. If you use the individual properties (such as metal and closeBox) instead, you don't need to reset the other decorations-related properties. *Cross-platform note:* On Mac OS and OS X systems, the "menu" decoration has no effect. On Windows systems, the "menu" decoration must be set along with the "maximize" or "minimize" decorations: you cannot use "maximize" or "minimize" without including "menu". On OS X systems, the minimize, close, and zoom boxes are always visible if the title bar is, and turning off these options disables the boxes instead of removing them, in comformance with user-interface guidelines for this platform. A WDEF identifier is the number of a Mac OS WDEF resource multiplied by 16, plus a variation code between zero and 15. For example, if you have a WDEF resource whose ID is 124, and you want to use its 14th variation (which is number 13, since the numbers start with zero), set the stack's decorations property to 1997. This number is 124 (the resource ID) times 16, plus 13 (the variation code). Various WDEF resources are included in the operating system--the exact WDEFs available vary from version to version. WDEF routines, like externals, can be written in a programming language and compiled. *Cross-platform note:* WDEF resources can be used only on Mac OS and OS X systems. For a cross-platform method of changing a window's shape, use the windowShape property. | |||||||||
Tags | windowing |