Release 10.1A: OpenEdge Development:
Progress 4GL Reference

> ## ADD-EVENTS-PROCEDURE( ) method

> Adds an external procedure to the list that Progress searches for event procedures to handle ActiveX control events.

> Return type: LOGICAL

> Applies to: CONTROL-FRAME widget

> Syntax
>     ADD-EVENTS-PROCEDURE ( procedure-handle )

> ``procedure-handle``

> A handle to a persistent procedure or an otherwise active procedure on the call stack.

> By default, Progress searches the external procedure that created the current control-frame for the event procedure to handle an ActiveX control event. This method allows you to specify alternative procedure (.p and .w) files to search for the event handler.

> When Progress receives an ActiveX event, it searches for the event handler in order of the most recent procedure added to the search list and ends the search with the external procedure that created the control-frame. You can override an existing procedure by adding a different one to the search list. Progress always uses the event handler in the most recently added procedure.

> If the method succeeds in adding the procedure to the list, it returns TRUE. Otherwise, it returns FALSE.

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