OWLNext    7.0
Borland's Object Windows Library for the modern age
Loading...
Searching...
No Matches
TVbxControl constructors

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:

TVbxControl(TWindow *parent,
int id, const char far *FileName, const char far *ClassName, const char far *title,
int x, int y,
int w, int h, TModule *module);

The parameters are described in the following table:

ParameterDescription
parentA pointer to the control's parent.
idThe control's ID, used when defining the parent's response table. It usually looks like a resource ID.
FileNameThe name of the file that contains the VBX control, including a path name if necessary.
ClassNameThe 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).
titleThe control's title or caption.
x and yThe coordinates within the parent object at which you want the control placed.
w and hThe control's width and the height.
modulePassed 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:

TVbxControl(TWindow *parent,
int resId, TModule *module);

This constructor's parameters are

ParameterDescription
parentA pointer to the control's parent.
residThe resource ID of the VBX control in the resource file.
modulePassed to the TControl base constructor as the TModule parameter for that constructor; defaults to 0.

See Also