Adobe 12040118 Using Help - Page 216
Objects used as property values, Properties found only in Window elements, The Bounds Object
UPC - 718659361808
View all Adobe 12040118 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 216 highlights
Adobe After Effects Help Using Help Creating User Interface Elements Back 216 Property value visible Type Number Boolean Description (for Scrollbar and Slider) the value of the control, for instance, the position of the moveable part of a Scrollbar or Slider. If value is reset outside the bounded range minvalue, maxvalue, value is set to the closest boundary. Contains true if the object is physically visible, false otherwise. If set to false, the UI object is hidden, and if set to true, the object is made visible. Properties found only in Window elements Window elements contain the following properties, in addition to those described in the previous section. defaultElement -- Object The element to notify when a user types the Enter key, with the intent to dismiss the dialog as if the "OK" button had been clicked. cancelElement -- Object The element to notify when a user types the Esc key (or the combination on a Mac), with the intent to dismiss the dialog as if the "Cancel" button had been clicked. Objects used as property values The values of certain properties are represented by objects that the scripting interface defines. This section describes those objects. It includes a description of their semantics, ways to create them, and descriptions of their properties. The Bounds Object A Bounds object is used to define the boundaries of a Window or UI element within its coordinate space. You cannot directly create a Bounds object; one is created when you set an element's bounds property. Reading the bounds property always yields a Bounds object. Bounds contains an array describing the position and size of a UI element. The array values represent the coordinates of the upper left and lower right corners of the element: [left, top, right, bottom]. These are screen coordinates for window elements, and are relative to the coordinate space of the parent (container) element for other element types. You can set an element's bounds property and indirectly create a Bounds object in any of these ways: e.bounds = Object The object must contain properties named left, top, right, bottom, or x, y, width, height, where each property has an integer coordinate value. e.bounds = Array The array must have integer coordinate values in the order [left, top, right, bottom]. e.bounds = String The string must be an executable JavaScript inline object declaration, containing the same property names as in the object case just described. See "Element size and location" on page 198 for examples. A Bounds object may be accessed as an array. In addition, it supports the following properties Property left top Type Number Number Description The 'x' coordinate value of the left edge of the element. The 'y' coordinate value of the top edge of the element. Using Help Back 216