Events alert applications when there is a change of
state. Events occur when a user action takes place (such as a mouse click), when an
attribute value is changed, or when a user-defined condition occurs. Event handlers then provide
a response to the change.
Use the Class Editor to create events that are specific to an entire
class. Use the
Properties window to create events that are specific to a single
object.
SAS/AF software supports system events, which can include user
interface events (such as mouse clicks) as well as “attribute changed” events that occur when
an attribute value is updated. For system events,
the State
metadata item is 'S'. In order for “attribute changed” events to be sent automatically, the
component must have the SendEvent metadata item for the attribute set to 'Yes'. See
Enabling Attribute Linking for details.
SAS/AF software also supports user-defined events, which
can be registered to specific classes as needed and are inherited
by subclasses.