Adobe 12040118 Using Help - Page 217
Common methods and event handlers, Window, Panel, StaticText, EditText, Button, Checkbox, RadioButton
UPC - 718659361808
View all Adobe 12040118 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 217 highlights
Adobe After Effects Help Using Help Creating User Interface Elements Back 217 Property right bottom x y width height Type Number Number Number Number Number Number Description The 'x' coordinate value of the right edge of the element. The 'y coordinate value of the bottom edge of the element. Same as left. Same as top. right - left. bottom - top. Common methods and event handlers Following are the common methods and event handlers defined for each element type. Window Panel StaticText EditText Button Checkbox RadioButton Scrollbar Slider add() center() close() hide() notify() show() onChange() onClick() onClose() onMove() onResize() x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x Methods Descriptions of the common methods and event handlers listed above follow: Method add (type [, bounds, text, { } ]); Returns Object Description Creates a new UI element and add it to the children array of its parent Window or Panel element. The optional parameter bounds is a Bounds object describing its position and size. This may also be a four-element array. The optional parameter text is assigned to the UI element as the initial text or title. The UI element itself decides how to use this string; it may be ignored. center([window]) no return value In general, a Button uses the text as its label, while a edit field uses it as its initial content. Internally, the text is assigned to the text property of the element. The optional parameter is an object with properties that specify attributes of the UI element that are used only when the element is created. are specific to the type of UI element, and are described below in the sections for each element type. The return value is the newly created UI element or null on errors. Centers a Window on screen, or optionally, within the specified window object. Using Help Back 217