Handling Editing Actions; Handling Events In A Control's Parent Window - Adobe GoLive CS2 Programmer's Manual

Hide thumbs Also See for GoLive CS2:
Table of Contents

Advertisement

SDK Programmer's Guide
coordinates of where the event occurred, and a mode value to indicate which specific mouse action
occurred:
0: Mouse button was pressed.
1: Mouse moved while the button was pressed.
2: Mouse button was released
3: Mouse was positioned over a custom control with the button not pressed.

Handling editing actions

For editable controls, GoLive generates the
field signals this event vary according to the type and the values of the onChange , onEnter , and
onNoChanged properties.
When onNoChanged is true , the control responds whether or not the text content has changed;
when it is false , the control responds only if the content has changed.
When onChange is true , the control responds when the user clicks outside it.
When onEnter is true (as it is for the type buttonedit ) the control responds when the user presses
E
, and also has an optional Enter button, controlled by a user preference.
NTER
When multiline is true (as it is for the type editarea ) the control has multiple lines, and responds
to each keypress, as well as loss of focus.
The type that you specify in the tag that creates an edit control sets certain default behavior; you can vary
this by changing the property values.
Type
edit
password
buttonedit
editarea

Handling events in a control's parent window

When an event is generated for a control (or any other nested object), GoLive looks for handlers for that
event that are registered with ancestor objects of that control—such as the containing panel, and its
containing window. It starts at the highest level and runs the first handler it finds, before running any
Adobe GoLive CS2 SDK
Description
Edit field
Password entry field
Edit field with Enter button
Multiline edit field
onChange
event. The circumstances under which a text-input
Updating Behavior
Creates a control in which
onNoChanged="false"
By default, this control generates the
when the content has changed and the control loses
the focus.
Like the
type, but displays user input as asterisks.
edit
Creates a control in which
onNoChanged="false"
Enter button (controlled by a user preference).
By default, this control generates the
when the content has changed and the user presses
E
.
NTER
Creates a multiline edit field (
generates the
onChange
pressed or when the control gains or loses the focus,
regardless of whether the content has changed.
Windows and Controls
and
onChange="true"
.
onChange
and
onEnter="true"
. The control also has an optional
onChange
multiline="true"
event whenever a key is
74
event
event
)which

Advertisement

Table of Contents
loading

Table of Contents