Adobe 12040118 Using Help - Page 219

UI object descriptions, around a panel.

Page 219 highlights

Adobe After Effects Help Using Help Creating User Interface Elements Back 219 Method onMove() onResize() Returns no return value Description This method is called when a Window has been moved. If you are interested in processing this event, define a function of this name in the Window object. no return value This method is called when a Window has been resized. If you are interested in processing this event, define a function of this name in the Window object. UI object descriptions This section describes UI objects such as windows, panels, buttons, checkboxes and so on. Window object To create a new Window object: Method new Window ("dialog" [, title, bounds]); Returns Object Description Creates a new Window. The required type argument contains the requested element type for a modal dialog. The optional title argument is used to set the window title, if specified. Optionally, a Bounds object or array may be supplied that describes the bounds of the window. If no bounds are given, a default bounds is chosen. The return value is the newly created window or null on errors. The panel element To add a Panel element to a window w: Method w.add ("panel" [, bounds, text, {} ]); Returns Object Description The optional parameter bounds defines the element's position and size.The optional parameter text is the text displayed in the border of the panel. The optional parameter is an object that can contain any of the following properties: To add a border style around a panel. Method borderStyle Returns String Description Specifies the appearance of the border drawn around the panel. It can be one of: none, etched, raised, sunken, black. The default borderStyle is etched. If you specify a Panel whose width is 0, it will appear as a vertical line; a panel whose height is 0 will appear as a horizontal line. Making a panel invisible will also hide all its children; making it visible again will also make visible those children that were visible when the panel was made invisible. Using Help Back 219

  • 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
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184
  • 185
  • 186
  • 187
  • 188
  • 189
  • 190
  • 191
  • 192
  • 193
  • 194
  • 195
  • 196
  • 197
  • 198
  • 199
  • 200
  • 201
  • 202
  • 203
  • 204
  • 205
  • 206
  • 207
  • 208
  • 209
  • 210
  • 211
  • 212
  • 213
  • 214
  • 215
  • 216
  • 217
  • 218
  • 219
  • 220
  • 221
  • 222
  • 223
  • 224
  • 225
  • 226
  • 227
  • 228
  • 229
  • 230
  • 231
  • 232
  • 233
  • 234
  • 235
  • 236
  • 237
  • 238
  • 239
  • 240
  • 241
  • 242
  • 243
  • 244
  • 245
  • 246
  • 247
  • 248
  • 249
  • 250
  • 251
  • 252
  • 253

U
sing H
elp
B
ack
219
Adobe After Effects Help
Creating User Interface Elements
U
sing H
elp
B
ack
219
UI object descriptions
This section describes UI objects such as windows, panels, buttons, checkboxes and so on.
Window object
To create a new
Window
object:
The panel element
To add a
Panel
element to a window
w
:
To add a
border style
around a panel.
If you specify a
Panel
whose width is 0, it will appear as a vertical line; a
panel
whose height is 0 will appear as
a horizontal line. Making a panel invisible will also hide all its children; making it visible again will also make
visible those children that were visible when the panel was made invisible.
onMove()
no return value
This method is called when a
Window
has been
moved. If you are interested in processing this event,
define a function of this name in the
Window
object.
onResize()
no return value
This method is called when a
Window
has been
resized. If you are interested in processing this event,
define a function of this name in the
Window
object.
Method
Returns
Description
new Window (“dialog” [, title, bounds]);
Object
Creates a new
Window
. The required
type
argument
contains the requested element type for a modal dia-
log. The optional
title
argument is used to set the
window title, if specified. Optionally, a
Bounds
object
or array may be supplied that describes the
bounds
of the window. If no bounds are given, a default
bounds is chosen. The return value is the newly cre-
ated window or
null
on errors.
Method
Returns
Description
w.add (“panel” [, bounds, text,
{<creation properties>} ]);
Object
The optional parameter
bounds
defines the ele-
ment’s position and size. The optional parameter text
is the
text
displayed in the border of the panel. The
optional parameter
<creation properties>
is an object
that can contain any of the following properties:
Method
Returns
Description
borderStyle
String
Specifies the appearance of the border drawn
around the panel. It can be one of: none, etched,
raised, sunken, black. The default borderStyle is
etched.
Method
Returns
Description