shadowOffset

Typeproperty
DictionaryLCS
LibraryLiveCode Script
Syntax
set the shadowOffset of <object> to <pixels>
Associationsstack, card, field, button, graphic, scrollbar, player, image
Summary

Specifies the size and direction of an object's drop shadow.

Introduced1.0
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Example
set the shadowOffset of button "Prospects" to 2
set the shadowOffset of field "Help" to -6
Values
NameTypeDescription
Value

The shadowOffset of an object is an integer between -128 and 127. By default, the shadowOffset of a newly created object is 4.

RelatedKeyword: card, integer
Glossary: object, property, negative
Property: shadow
Description

Use the shadowOffset property to change the appearance of drop shadows.

Because this also changes the position of the imaginary light source that casts the shadow, the shadowOffset of all objects on a card should usually be the same.

The shadowOffset specifies how far the shadow extends from the edge of the object. If the shadowOffset is positive, the imaginary light source is at the upper left corner of the screen, so the drop shadow falls below and to the right of the object. If the shadowOffset is negative, the direction of the light source is reversed, and the drop shadow falls above and to the left of the object.

If the object's shadow property is false, the shadowOffset has no effect.

Tagsui