Progress
External Program
Interfaces


Automation Event Support

Progress supports event notification for ActiveX Automation objects with a built-in method that enables event notification for that specific component handle.

NOTE: This method is invalid when the component handle represents a control, since events work for controls automatically.

The following syntax describes the ENABLE-EVENTS method for ActiveX Automation objects:

SYNTAX
ENABLE-EVENTS ( event-proc-prefix ) 

event-proc-prefix

A CHARACTER expression representing a string prepended to every event received. The resulting string is the name of the internal procedure Progress runs in response to an event notification. During an event notification, all running procedures and all persistent procedures are searched to find a procedure with the name matching event-proc-prefix.eventname (for example, ExcelWB.SelectionChanged).

For more information on managing Automation objects, see the sections on COM object management in Using COM Objects In the 4GL."

For information on ActiveX control event management, see ActiveX Control Support."


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095