topColor

Typeproperty
DictionaryLCS
LibraryLiveCode Script
Syntax
set the topColor of <object> to {empty | <colorName> | <RGBColor>}
Synonymsfifthcolor
Associationsstack, card, field, button, graphic, scrollbar, player, image, group
Summary

Specifies the color of a three-D object's raised edge.

Introduced1.0
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Example
set the topColor of last button to 32,32,96
set the topColor of this stack to "white"
set the topColor of scrollbar ID 22 to "#339933"
Values
NameTypeDescription
Value

The topColor of an object is a color reference. The colorName is any standard color name.

The RGBColor consists of three comma-separated integers between zero and 255, specifying the level of each of red, green, and blue; or an HTML-style color consisting of a hash mark (#) followed by three hexadecimal numbers, one for each of red, green, and blue.

By default, the topColor for all objects is empty.

RelatedKeyword: effective, field, button, scrollbar, player, graphic, card, image
Property: bottomColor, shadowColor, hiliteColor, hiliteBorder, borderColor, topPattern, threeD, colors, backgroundColor, owner, topColor, textStyle
Command: group
Function: colorNames
Glossary: object, property, EPS, audio clip, owner, object type, color palette, keyword, integer, video clip, hexadecimal, color reference
Object: image, field, stack
Description

Objects whose threeD property is set to true appear to stick out of or recede into the screen. Use the topColor property to specify the color of the raised edge of the object.

Setting the topColor of an object to empty allows the topColor of the object's owner to show through. Use the effective keyword to find out what color is used for the object, even if its own topColor is empty.

If the object's showBorder property is false, the topColor has no effect.

The setting of the topColor property has different effects, depending on the object type:

If an object's topPattern is set, the pattern is shown instead of the color specified by the topColor.

Tagsui