Release 10.1A: OpenEdge Development:
Programming Interfaces

> ## Support for ActiveX control events

> ActiveX controls respond to events much like Progress widgets. ActiveX controls that provide a user interface typically generate user-interface events, similar to user-interface widgets. However, ActiveX controls can support other types of functionality that generate other types of events, such as events that notify the arrival of a message for a communications application or the change in temperature of a manufacturing process for a data acquisition application.

> Also, unlike widget events, ActiveX control events can pass parameters like a procedure call. Thus, Progress provides a type of internal procedure (OCX event procedure) to handle ActiveX control events. You can handle any ActiveX control event using an OCX event procedure.

> Progress also allows you to handle certain events on the control-frame widget instead of on the ActiveX control. When ActiveX controls have focus, they generally take over the input and your application receives most events directly as ActiveX control events. However, when an ActiveX control has no equivalent event or when it is necessary to manage the orientation of the control in the Progress user interface, you can handle some input actions as field-level widget events on the control-frame. You can handle these widget events using the standard 4GL ON statement, but Progress executes only one event handler (a Progress trigger or an OCX event procedure) per event.

> For more information on handling events for ActiveX controls, see Chapter 16, " ActiveX Control Support."

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