colors | |||||||
Type | property | ||||||
Dictionary | LCS | ||||||
Library | LiveCode Script | ||||||
Syntax |
| ||||||
Associations | stack, card, field, button, graphic, scrollbar, player, image | ||||||
Summary | Specifies all the colors of an object, in shorthand form. | ||||||
Introduced | 1.0 | ||||||
OS | mac, windows, linux, ios, android | ||||||
Platforms | desktop, server, mobile | ||||||
Example |
| ||||||
Values |
| ||||||
Related | Keyword: colorPalette, line Property: foregroundColor, backgroundColor, hiliteColor, borderColor, topColor, bottomColor, shadowColor, focusColor, linkColor, linkHiliteColor, owner, patterns, properties Command: answer color Function: mouseColor Glossary: color reference, image, inheritance, object, property | ||||||
Description | Use the colors property to get all eight basic color properties at once, or to set the colors of one object to be the same as the colors of another object. For objects other than images, you can set all these colors individually; the colors property simply provides a shorter method of dealing with all of them at once. Each line of the colors corresponds to one of the following color properties :
If you leave a line blank when setting the colors, the color property corresponding to that line is left unchanged. If the colors property of an object reports a blank line, that color is not set for the individual object, but is inherited from the object's owner. Use the form the effective colors of object to obtain the colors used for the object, whether set for the object or inherited. If a pattern is set for an object, that pattern is used instead of the corresponding color for that object. | ||||||
Tags | ui |