bottomPattern

Typeproperty
DictionaryLCS
LibraryLiveCode Script
Syntax
set the bottomPattern of <object> to {empty | <patternNumber> | <imageID>}
Associationsstack, card, field, button, graphic, scrollbar, player, image, group
Summary

Specifies the pattern of a three-D object's lowered edge.

Introduced1.0
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Example
set the bottomPattern of scrollbar 2 to 4934
set the bottomPattern of button "OK" to savedPattern
Values
NameTypeDescription
Value

The bottomPattern of an object is a pattern specifier. A patternNumber is a built-in pattern number between 1 and 164. These patterns are provided for compatability with patterns available in MetaCard and correspond to LiveCode's built in image id 137 to 300. As with MetaCard pattern numbers 105 to 114 and 146 and above are unavailable.

An imageID is the ID of an image to use for a pattern. LiveCode looks for the specified image first in the current stack, then in other open stacks.

By default, the bottomPattern for all objects is empty.

RelatedKeyword: button, card, control, effective, field, graphic, image, player, scrollbar
Property: bottomColor, foregroundPattern, height, hiliteBorder, hilitePattern, owner, patterns, pixels, shadowPattern, textStyle, threeD, threeDHilite, topPattern, width
Command: group
Function: stacks
Glossary: audio clip, control, current stack, keyword, Mac OS, object, object type, property, Unix, video clip, Windows
Object: EPS, field, stack
Description

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

Pattern images can be color or black-and-white.

*Cross-platform note:* To be used as a pattern on Mac OS systems, an image must be 128x128 pixels or less, and both its height and width must be a power of 2. To be used on Windows and Unix systems, height and width must be divisible by 8. To be used as a fully cross-platform pattern, both an image's dimensions should be one of 8, 16, 32, 64, or 128.

The bottomPattern of controls is drawn starting at the control's upper right corner: if the control is moved, the pattern does not shift.

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

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

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

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

Tagsui