|
2 | 2 |
|
3 | 3 | Code examples for ScriptUI
|
4 | 4 | ==========================
|
5 |
| -The sample code distributed with the Adobe ExtendScript SDK includes code examples that specifically |
| 5 | +The sample code distributed with the `Adobe ExtendScript SDK <https://github.com/Adobe-CEP/CEP-Resources/tree/master/ExtendScript-Toolkit>`_ includes code examples that specifically |
6 | 6 | demonstrate different ways of building and populating a ScriptUI dialog.
|
7 | 7 |
|
8 |
| -=============================== ========================================================================================== |
9 |
| -Building ScriptUI dialogs |
10 |
| -=============================== ========================================================================================== |
11 |
| -SnpCreateDialog.jsx Creates a very simple, modeless dialog (a palette) with OK |
12 |
| - and Cancel button behavior. |
13 |
| -SnpCreateUIAddMethod.jsx Shows how to add controls to a dialog using the add |
14 |
| - method. |
15 |
| -SnpCreateUIResourceSpec.jsx Shows how to define a resource string that creates the |
16 |
| - control hierarchy in a dialog. |
17 |
| -SnpCreateTreeView.jsx Shows how to create a hierarchical list with subitems. |
18 |
| -SnpCreateProgressBar.jsx Shows how to create, initialize, and update a progress bar. |
19 |
| -SnpCreateSlider.jsx Shows how to create and handle input from a slider control. |
20 |
| -UsingFlashPlayer.jsx Shows how to create a Flash® Player, and use it to load a play |
21 |
| - back a movie defined in an SWF file. |
22 |
| -ActionScriptDemo.jsx Shows how to communicate between the Adobe |
23 |
| - application scripting environment and the ActionScript™ |
24 |
| - scripting environment of the Flash Player. |
25 |
| -ColorSelector.jsx Shows how to use the graphics objects to change colors in a |
26 |
| - window. |
27 |
| -ColorPicker.jsx A more complex version of the color-selection dialog shows |
28 |
| - how to use additional graphics objects, including fonts and |
29 |
| - paths. |
30 |
| -SnpAlignElements.jsx Shows how to align elements along two dimensions in order |
31 |
| - to control the relative positions of controls within rows and |
32 |
| - columns. |
33 |
| -SnpCreateDynamicScriptUI.jsx Shows how to use automatic layout, switching component |
34 |
| - layout between "row" and "stack" orientation. |
35 |
| -AlertBoxBuilder1.jsx Shows a way to use resource specifications. Uses the add() |
36 |
| - method to build a dialog that collects values from the user, |
37 |
| - and creates a resource string from those values. Saves the |
38 |
| - string to a file, then uses it to build a new dialog. See :ref:`using-resource-strings`. |
39 |
| -AlertBoxBuilder2.jsx Shows another way to use a resource specification, building |
40 |
| - the same user-input dialog itself from a resource string. See |
41 |
| - :ref:`using-resource-strings`. |
42 |
| -SnpCustomLayoutManager.jsx Shows how to create a customized layout manager. See |
43 |
| - :ref:`custom-layout-manager-example`. |
44 |
| -=============================== ========================================================================================== |
| 8 | +.. list-table:: |
| 9 | + |
| 10 | + * - **Building ScriptUI dialogs** |
| 11 | + - |
| 12 | + * - `SnpCreateDialog.jsx <https://github.com/Adobe-CEP/CEP-Resources/blob/master/ExtendScript-Toolkit/Samples/javascript/SnpCreateDialog.jsx>`_ |
| 13 | + - Creates a very simple, modeless dialog (a palette) with OK and Cancel button behavior. |
| 14 | + * - `SnpCreateUIAddMethod.jsx <https://github.com/Adobe-CEP/CEP-Resources/blob/master/ExtendScript-Toolkit/Samples/javascript/SnpCreateUIAddMethod.jsx>`_ |
| 15 | + - Shows how to add controls to a dialog using the add method. |
| 16 | + * - `SnpCreateUIResourceSpec.jsx <https://github.com/Adobe-CEP/CEP-Resources/blob/master/ExtendScript-Toolkit/Samples/javascript/SnpCreateUIResourceSpec.jsx>`_ |
| 17 | + - Shows how to define a resource string that creates the control hierarchy in a dialog. |
| 18 | + * - `SnpCreateTreeView.jsx <https://github.com/Adobe-CEP/CEP-Resources/blob/master/ExtendScript-Toolkit/Samples/javascript/SnpCreateTreeView.jsx>`_ |
| 19 | + - Shows how to create a hierarchical list with subitems. |
| 20 | + * - `SnpCreateProgressBar.jsx <https://github.com/Adobe-CEP/CEP-Resources/blob/master/ExtendScript-Toolkit/Samples/javascript/SnpCreateProgressBar.jsx>`_ |
| 21 | + - Shows how to create, initialize, and update a progress bar. |
| 22 | + * - `SnpCreateSlider.jsx <https://github.com/Adobe-CEP/CEP-Resources/blob/master/ExtendScript-Toolkit/Samples/javascript/SnpCreateSlider.jsx>`_ |
| 23 | + - Shows how to create and handle input from a slider control. |
| 24 | + * - `UsingFlashPlayer.jsx <https://github.com/Adobe-CEP/CEP-Resources/blob/master/ExtendScript-Toolkit/Samples/javascript/UsingFlashPlayer.jsx>`_ |
| 25 | + - Shows how to create a Flash® Player, and use it to load a play back a movie defined in an SWF file. |
| 26 | + * - `ActionScriptDemo.jsx <https://github.com/Adobe-CEP/CEP-Resources/blob/master/ExtendScript-Toolkit/Samples/javascript/ActionScriptDemo.jsx>`_ |
| 27 | + - Shows how to communicate between the Adobe application scripting environment and the ActionScript™ scripting environment of the Flash Player. |
| 28 | + * - `ColorSelector.jsx <https://github.com/Adobe-CEP/CEP-Resources/blob/master/ExtendScript-Toolkit/Samples/javascript/ColorSelector.jsx>`_ |
| 29 | + - Shows how to use the graphics objects to change colors in a window. |
| 30 | + * - `ColorPicker.jsx <https://github.com/Adobe-CEP/CEP-Resources/blob/master/ExtendScript-Toolkit/Samples/javascript/ColorPicker.jsx>`_ |
| 31 | + - A more complex version of the color-selection dialog shows how to use additional graphics objects, including fonts and paths. |
| 32 | + * - `SnpAlignElements.jsx <https://github.com/Adobe-CEP/CEP-Resources/blob/master/ExtendScript-Toolkit/Samples/javascript/SnpAlignElements.jsx>`_ |
| 33 | + - Shows how to align elements along two dimensions in order to control the relative positions of controls within rows and columns. |
| 34 | + * - `SnpCreateDynamicScriptUI.jsx <https://github.com/Adobe-CEP/CEP-Resources/blob/master/ExtendScript-Toolkit/Samples/javascript/SnpCreateDynamicScriptUI.jsx>`_ |
| 35 | + - Shows how to use automatic layout, switching component layout between "row" and "stack" orientation. |
| 36 | + * - `AlertBoxBuilder1.jsx <https://github.com/Adobe-CEP/CEP-Resources/blob/master/ExtendScript-Toolkit/Samples/javascript/AlertBoxBuilder1.jsx>`_ |
| 37 | + - Shows a way to use resource specifications. Uses the add() method to build a dialog that collects values from the user, and creates a resource string from those values. Saves the string to a file, then uses it to build a new dialog. See :ref:`using-resource-strings`. |
| 38 | + * - `AlertBoxBuilder2.jsx <https://github.com/Adobe-CEP/CEP-Resources/blob/master/ExtendScript-Toolkit/Samples/javascript/AlertBoxBuilder2.jsx>`_ |
| 39 | + - Shows another way to use a resource specification, building the same user-input dialog itself from a resource string. See :ref:`using-resource-strings`. |
| 40 | + * - `SnpCustomLayoutManager.jsx <https://github.com/Adobe-CEP/CEP-Resources/blob/master/ExtendScript-Toolkit/Samples/javascript/SnpCustomLayoutManager.jsx>`_ |
| 41 | + - Shows how to create a customized layout manager. See :ref:`custom-layout-manager-example`. |
0 commit comments