Click or drag to resize

ControlWindow Constructor

X#
Construct a control window from an existing control.

Namespace:  VO
Assembly:  VOGUIClasses (in VOGUIClasses.dll) Version: 2.21
Syntax
 CONSTRUCTOR(
	oControl
) CLIPPER
Request Example View Source

Parameters

oControl (Optional)
Type: Usual
The control that should be used to initialize the control window. It should be an instance of any subclass of Control.
Remarks
The control used to initialize the control window is automatically destroyed when the control window is destroyed.
Examples
The following example constructs a control window with the same properties as a push button:
X#
1CLASS PbWindow INHERIT ControlWindow
2METHOD Init(oWOwner,nResourceID) CLASS PbWindow
3LOCAL oPB AS OBJECT
4oPB := PushButton{oOwner,nResourceID}
5SUPER:Init(oPB)
See Also