Progress
Language Reference


Control-Name Property

The component handle to an ActiveX control that has the specified design-time name (Control-Name) and that is loaded into the control-frame.

Data Type: COM-HANDLE

Access: Readable

Applies To: Control-frame COM object

To return the component handle of the ActiveX control, you provide the design-time name as a property of the control-frame COM object:

DEFINE VARIABLE hSpin AS COM-HANDLE.
DEFINE VARIABLE hControlFrameCOM AS COM-HANDLE.
DEFINE VARIABLE hControlFrame AS WIDGET-HANDLE.

/* ... Instantiate the control-frame with hControlFrame 
   and load the Spin control into it ... */

hControlFrameCOM = hControlFrame:COM-HANDLE.
hSpin = hControlFrameCOM:Spin. 

In this example, Spin is the name of an ActiveX control and is also used as a property to return the handle to that control.

This is the simplest technique to access an ActiveX control that is loaded in a control frame.

NOTES


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