
ADOBE DIRECTOR 11.0
User Guide
413
Before opening the dialog box, use the Initialize command to specify which list Director uses as the source of defini-
tions for the overall dialog box.
Example
These statements specify the components for a general purpose dialog box that contains an editable field and a
button. The dialog box is created from theBox, which is an instance of the MUI Xtra.
The first statement creates a new list named aWindowItemList.
Each subsequent set of statements obtains a predefined list of properties for an individual component, modifies it as
necessary, and then adds the modified list to the overall list of dialog box components.
The final statement displays the new overall list in the Message window. The result appears at the end of the example.
For easier reading, the display has been broken out into separate sections for each item in the list.
set aWindowItemList = []
-- Set up the beginning of the dialog box
set tempItemPropList = GetItemPropList(theBox)
set the type of tempItemPropList = #windowBegin
append (aWindowItemList, duplicate(tempItemPropList))
-- Set up the beginning of an overall group
set tempItemPropList = GetItemPropList(theBox)
set the type of tempItemPropList = #groupHBegin
append (aWindowItemList, duplicate(tempItemPropList))
-- Set up an editable field
-- This will use default values for text attributes, because no
-- list of values is assigned to the attributes property.
set tempItemPropList = GetItemPropList(theBox)
set the type of tempItemPropList = #editText
set the value of tempItemPropList = "Enter text here"
append (aWindowItemList, duplicate(tempItemPropList))
-- Set up an OK button
#WindowEnd (Ignored)
(Not
applicable)
#GroupHBegin (Ignored)
(Not
applicable)
#GroupHEnd (Ignored)
(Not
applicable)
#GroupVBegin (Ignored)
(Not
applicable)
#GroupVEnd (Ignored)
(Not
applicable)
#label
String
"label: ", "Long Label Text Here"
#IntegerSliderH
Integer
1, 100, 0
#FloatSliderH Float
1.2,
0.0,
12.345
#defaultPush-
Button
(Ignored) (Not
applicable)
#cancelPush-
Button
(Ignored) (Not
applicable)
#pushButton (Ignored)
(Not
applicable)
#toggleButton Boolean
TRUE,
FALSE
Component
Possible setting for #value
Examples
Содержание 65036570 - Director - PC
Страница 1: ...i ADOBE DIRECTOR 11 USER GUIDE...