topPattern | |||||||
Type | property | ||||||
Dictionary | LCS | ||||||
Library | LiveCode Script | ||||||
Syntax |
| ||||||
Associations | stack, card, field, button, graphic, scrollbar, player, image, group | ||||||
Summary | Specifies the pattern used to draw a three-D object's raised edge. | ||||||
Introduced | 1.0 | ||||||
OS | mac, windows, linux, ios, android | ||||||
Platforms | desktop, server, mobile | ||||||
Example |
| ||||||
Values |
| ||||||
Related | Keyword: effective, field, image, button, card, scrollbar, player, graphic, control Property: pixels, textStyle, owner, height, width, topColor, bottom, hiliteBorder, bottomPattern, threeDHilite, threeD Command: group Function: stacks Glossary: object, property, EPS, audio clip, Windows, object type, Mac OS, keyword, Unix, video clip, current stack, control Object: button, field, stack | ||||||
Description | Objects whose threeD property is set to true appear to stick out of or recede into the screen. Use the topPattern property to specify the pattern used to draw the raised 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 topPattern of controls is drawn starting at the control's upper right corner: if the control is moved, the pattern does not shift. Setting the topPattern of an object to empty allows the topPattern 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 topPattern is empty. If the object's showBorder property is false, the topPattern has no effect. The setting of the topPattern 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. | ||||||
Tags | ui |