forked from livecode/livecode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathborderPattern.lcdoc
More file actions
119 lines (85 loc) · 4.56 KB
/
Copy pathborderPattern.lcdoc
File metadata and controls
119 lines (85 loc) · 4.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
Name: borderPattern
Type: property
Syntax: set the borderPattern of <object> to {empty | <patternNumber> | <imageID>}
Summary:
Specifies the pattern of an <object|object's> border.
Associations: stack, card, field, button, graphic, scrollbar, player,
image, group
Introduced: 1.0
OS: mac, windows, linux, ios, android
Platforms: desktop, server, mobile
Example:
set the borderPattern of group "Nav" to myPattern
Value:
The <borderPattern> of an <object(glossary)> 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 <borderPattern> for all <object|objects> is empty.
Description:
Use the <borderPattern> <property> to specify the border pattern of a
<button(keyword)> or <scrollbar>.
Pattern images can be color or black-and-white.
>*Cross-platform note:* To be used as a pattern on
> <Mac OS|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|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 <borderPattern> of <control(glossary)|controls> is drawn starting at
the <control(glossary)|control's> upper right corner: if the
<control(keyword)> is moved, the pattern does not shift.
Setting the <borderPattern> of an <object(glossary)> to empty allows the
<borderPattern> of the <object|object's> <owner> to show through. Use
the <effective> <keyword> to find out what color is used for the
<object(glossary)>, even if its own <borderPattern> is empty.
If the object's showBorder <property> is false, the <borderPattern> has
no effect.
The setting of the <borderPattern> <property> has different effects,
depending on the <object type>:
* The <borderPattern> of a <stack>, <card>, or <group> determines the
<borderPattern> of each <object(glossary)> in the <stack>, <card>, or
<group> that does not have its own <borderPattern>.
* The <borderPattern> of a <button(keyword)> determines the pattern of
the border around the <button(keyword)>. If the
<button(object)|button's> <style> is checkbox or radioButton, the
<borderPattern> has no effect. If the <button(keyword)> is a <button
menu>, the <borderPattern> has no effect unless the
<button(object)|button's> <menuMode> <property> is set to comboBox or
popup. If the button's <threeD> <property> is set to true, the
<borderPattern> has no effect regardless of the
<button(object)|button's> <style>.
* The <borderPattern> of a <field(keyword)> has no effect, except for
the border around a scrolling <field(object)|field's> scrollbar. The
<field(object)|field's> <borderPattern> also determines the pattern of
the outline around any text in the <field(keyword)> whose <textStyle>
is set to "box".
* The <borderPattern> of a <scrollbar> determines the pattern of the
border surrounding the <scrollbar>.
* The <borderPattern> of a <graphic>, <audio clip>, <video clip>, or
<image> has no effect.
* The <borderPattern> of a <player> or <EPS> <object(glossary)>
determines the pattern of the border around the <object(glossary)>. If
the <object|object's> <threeD> <property> is set to true, the
<borderPattern> has no effect.
If an object's <borderPattern> is set, the pattern is shown instead of
the color specified by <borderColor>.
References: group (command), stacks (function), audio clip (glossary),
button menu (glossary), control (glossary), current stack (glossary),
keyword (glossary), Mac OS (glossary), object (glossary),
object type (glossary), property (glossary), Unix (glossary),
video clip (glossary), Windows (glossary), button (keyword),
card (keyword), control (keyword), effective (keyword), field (keyword),
graphic (keyword), image (keyword), player (keyword), scrollbar (keyword),
button (object), EPS (object), field (object), stack (object),
borderColor (property), borderWidth (property), foregroundPattern (property),
height (property), markerFilled (property), menuMode (property),
owner (property), patterns (property), pixels (property),
shadowPattern (property), style (property), textStyle (property),
threeD (property), width (property)
Tags: ui