Adobe 27510753 Scripting Guide - Page 37
Adding a user interface to \, Dialog box overview
UPC - 718659445294
View all Adobe 27510753 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 37 highlights
Adobe InDesign CS2 Scripting Guide Getting Started with InDesign Scripting 29 Adding a user interface to "Hello World" If you want your script to collect and act on information entered by you or by any other user of your script, you can add a user interface to the script. AppleScript, VBScript, and JavaScript can create dialog boxes for simple yes/no questions and text entry, but you might want to create more complex dialog boxes. Although Visual Basic can create complete user interfaces, these run from a separate Visual Basic executable file. InDesign scripting includes the ability to create complex dialog boxes that appear inside InDesign and that look very much like the program's standard user interface. Dialog box overview An InDesign dialog box is an object like any other InDesign scripting object. The dialog box can contain several kinds of elements. Dialog box element Text edit fields Number entry fields Pop-up menus Controls that combine a text edit field with a pop-up menu Checkboxes Radio buttons InDesign name Text editbox controls Real editbox, integer editbox, measurement editbox, percent editbox, angle editbox Dropdown controls Combobox controls Checkbox controls Radiobutton controls The dialog box object itself does not directly contain the controls-that's the purpose of the dialog column object. Dialog columns give you a way to control the positioning of controls within a dialog box. Inside dialog columns, you can further subdivide the dialog box into other dialog columns or border panels (both of which can, if necessary, contain further dialog columns and border panels). Border panel Dialog column Dialog column Dialog column Dialog column Static text Radiobutton group Radiobutton control Integer editbox Checkbox control Dropdown