Try OpenEdge Now
skip to main content
Programming Interfaces
External Program Interfaces : ActiveX Control Support : Accessing ActiveX controls at runtime : Accessing the control handle : The handle connections
 
The handle connections
The previous examples rely on attributes, properties, and methods supported by ABL to get a component handle from a control-frame widget handle (see Figure 61). Thus, to provide access to the control-frame widget and its related COM objects:
*The control-frame widget has a COM-HANDLE attribute that returns the component handle of the control-frame COM object.
*The control-frame COM object has a Controls property that returns the component handle of the control collection. You can then use the Item property on the collection component handle to get the component handle of the control.
Note: The control collection is a standard COM object that is used to access sets of like objects (objects in the same class).
*The control-frame COM object has a special property named after the ActiveX control that returns the component handle of the control.
*The control-frame COM object provides a Widget-Handle property that returns the widget handle of the instantiating control-frame widget.