Adobe 12040118 Using Help - Page 202
The Button element, The Slider element, creation property, EditText, multiline:true, Button, Window
UPC - 718659361808
View all Adobe 12040118 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 202 highlights
Adobe After Effects Help Using Help Creating User Interface Elements Back 202 Note the creation property on the second EditText field, where multiline:true is specified. multiline:true indicates that the text in the item should wrap to the next page. In other words, it specifies a field in which a long text string may be entered, and the text will wrap to appear as multiple lines. The Button element Button elements are typically used to initiate some action from a Window when a user clicks the mouse pointer over the button; for example: accepting a dialog's current settings, canceling a dialog, bringing up a new dialog box, etc. The text property provides a label to identify a Button's function: var dlg = new Window('dialog', 'Alert Box Builder',[100,100,480,245]); dlg.btnPnl = dlg.add('panel', [15,50,365,95], 'Build it'); d l g .b t n Pn l . te s t B t n = d l g . b t n Pn l . a d d ( ' b u t ton ' , [ 1 5 , 1 5 , 1 1 5 , 3 5 ] , ' Te s t ' ) ; dlg.btnPnl.buildBtn = dlg.btnPnl.add('button', [125,15,225,35], 'Build', {name:'ok'}); dlg.btnPnl.cancelBtn = dlg.btnPnl.add('button', [235,15,335,35], 'Cancel', {name:'cancel'}); dlg.show(); The Slider element Slider elements are typically used to select within a range of values, allowing the user to hold the mouse pointer down over a moveable position indicator on the slider and drag this indicator within the range of the slider. If you click the mouse pointer on a point on the slider bar, the position indicator will jump to that location. A Slider has a value property that reflects the position of the moveable indicator, and minvalue and maxvalue properties to define the endpoints of the slider's range of values. To make a slider control appear like those used in After Effects, adjust the height of the control until the slider bar appears as a single line. The Scrollbar element Scrollbar elements are similar to Slider elements, in that they are often used to select within a range of values, and have a moveable position indicator. They have all the properties of sliders, and in addition, they have 'stepper buttons' at each end of the scrollbar for moving the position indicator in fixed-size steps. Using Help Back 202