ScriptUI
QuickLinks
Properties
Property | Type | Access | Description |
---|---|---|---|
Alignment | String | readonly | Collects the enumerated values that can be used in the alignment and alignChildren properties of controls and containers. Predefined alignment values are: TOP, BOTTOM, LEFT, RIGHT, FILL, CENTER |
FontStyle | Object | readonly | Collects the enumerated values that can be used as the style argument to the ScriptUI.newFont() method. Predefined styles are REGULAR, BOLD, ITALIC, BOLDITALIC. |
applicationFonts | Object | readonly | The font constants defined by the host application. |
compatibility | Object | readonly | An object whose properties are the names of compatability modes supported by the host application. The presence of |
coreVersion | String | readonly | A string containing the internal version number of the ScriptUI module. |
frameworkName | String | readonly | A string containing the name of the UI component framework with which this version of ScriptUI is compatible. |
version | Any | readonly | A string containing the version number of the ScriptUI component framework |
Methods
String getResourceText (text:String)
Finds and returns the resource for a given text string from the host application's resource data.
If no string resource matches the given text, the text itself is returned.
Parameter | Type | Description |
---|---|---|
text | String | The text to match. |
ScriptUIFont newFont (name:String, style:String Number, size:Number)
Creates a new font object for use in text controls and titles.
Parameter | Type | Description |
---|---|---|
name | String | The font name, or the font family name. |
style | String Number | The font style; can be string, or one of the values of ScriptUI.FontStyle. |
size | Number | The font size in points. |
ScriptUIImage newImage (normal:String, disabled:String, pressed:String, rollover:String)
Loads a new image from resources or disk files into an image object.
Creates a new global image object for use in controls that can display images, loading the associated images from the specified resources or image files.
Parameter | Type | Description |
---|---|---|
normal | String | The resource name or the disk file path to the image used for the normal state. |
disabled | String | The resource name, or the disk file path to the image used for the disabled state. |
pressed | String | The resource name, or the disk file path to the image used for the pressed state. |
rollover | String | The resource name, or the disk file path to the image used for the rollover state. |