shadowPattern

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

Specifies the pattern of an object's drop shadow.

Introduced1.0
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Example
set the shadowPattern of next card to empty
set the shadowPattern of last button to 409
Values
NameTypeDescription
Value

The shadowPattern of an object is a pattern specifier. A patternNumber is a built-in pattern number between 1 and 164. These patterns are provided for compatibility 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 shadowPattern for all objects is empty.

RelatedKeyword: effective, field, image, button, shadow, player, control, card, scrollbar, graphic
Property: pixels, backgroundPattern, height, style, shadow, owner, borderPattern, width, shadowColor, bottomPattern
Command: group
Function: stacks
Glossary: object, property, EPS, audio clip, tabbed button, Windows, object type, Mac OS, keyword, Unix, video clip, current stack, control
Object: button, field, stack
Description

Use the shadowPattern property to specify the drop shadow pattern of a field or button or the background pattern of a scrollbar.

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

*Cross-platform note:* To be used as a pattern on Mac OSsystems, 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 shadowPattern of controls is drawn starting at the control's upper right corner: if the control is moved, the pattern does not shift.

Setting the shadowPattern of an object to empty allows the shadowPattern 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 shadowPattern is empty.

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

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

Tagsui