OWLNext 7.0
Borland's Object Windows Library for the modern age
|
TVbxControl has two constructors.
Dynamically constructing a VBX control The first constructor lets you dynamically construct a VBX control by specifying a VBX control file name (for example, SWITCH.VBX), control ID, control class, control title, location, and size:
The parameters are described in the following table:
Parameter | Description |
parent | A pointer to the control's parent. |
id | The control's ID, used when defining the parent's response table. It usually looks like a resource ID. |
FileName | The name of the file that contains the VBX control, including a path name if necessary. |
ClassName | The class name of the control. A given VBX control file might contain a number of separate controls, each of which is identified by a unique class name (usually found in the control reference guide of third-party VBX control libraries). |
title | The control's title or caption. |
x and y | The coordinates within the parent object at which you want the control placed. |
w and h | The control's width and the height. |
module | Passed to the TControl base constructor as the TModule parameter for that constructor; defaults to 0. |
Using a VBX control in the application's resource file The second constructor lets you set a TVbxControl object using a VBX control that has been defined in the application's resource file:
This constructor's parameters are
Parameter | Description |
parent | A pointer to the control's parent. |
resid | The resource ID of the VBX control in the resource file. |
module | Passed to the TControl base constructor as the TModule parameter for that constructor; defaults to 0. |