Adobe 65036570 - Director - PC User Manual page 427

User guide
Hide thumbs Also See for 65036570 - Director - PC:
Table of Contents

Advertisement

Property
Title
#popupList
No
#pushButton
Yes
#radioButton
Yes
#toggleButton
Yes
#windowBegin
No
#windowEnd
No
The GetWidgetList function also returns a list of supported general purpose dialog box component types.
Sending dialog box events to Director
Sending dialog events back to Director lets you determine events such as clicking buttons, changing values, or when
the dialog box moves or closes.
When a dialog box event occurs, the callback message includes three arguments:
The callback event symbol, which identifies the type of event.
Event-specific information such as the number in the #windowItemList of the item involved in the event
The new item property list for the affected item
To specify how a general purpose dialog box responds, write Lingo that instructs the movie what to do in response
to an event and then assign that Lingo to the event's symbol. Specify which handler responds to a dialog box event
by assigning the handler's name to the dialog box's #callback property in the list assigned to the #windowPropList.
The following are possible events that a general purpose dialog box can send back to Director to indicate what
happened to the dialog box:
Event
#itemChanged
#itemClicked
#windowOpening
#windowClosed
#windowZoomed
#windowResized
#itemEnteringFocus
#itemLosingFocus
These are some tricks for setting up a callback:
Store item numbers in global variables when building an item list. To check whether an item is important,
compare eventData to the stored index number.
Because all buttons have their text in their titles, you can compare the title against text to determine if a particular
button was clicked. For portability and easier localization, store text button titles in global string variables when
setting up a dialog box and to do comparisons.
Available attributes
#popupStyle, #valueList, #layoutStyle
#textSize, #layoutStyle
#textSize, #layoutStyle
#textSize, #layoutStyle
None
None
What occurred
The item's value has changed.
The user clicked an item in the dialog box.
The dialog box window opened.
The dialog box window closed.
The dialog box window was zoomed.
The dialog box window was resized.
An item in the dialog box got focus.
An item in the dialog box lost focus.
ADOBE DIRECTOR 11.0
416
User Guide

Advertisement

Table of Contents
loading

This manual is also suitable for:

Director 11

Table of Contents