class ActiveX
Representation of an ActiveX control.
Syntax
[<oRef> =] new ActiveX(<container> [,<name expC>])
<oRef>
A variable or property—typically of <container>—in which to store a reference to the newly created ActiveX object.
<container>
The container—typically a Form object—to which you’re binding the ActiveX object.
<name expC>
An optional name for the ActiveX object. If not specified, the ActiveX class will auto-generate a name for the object.
Properties
The following table lists the properties of interest in the ActiveX class. (No particular events or methods are associated with this class.)
Property |
Default |
Description |
0 – None |
How the ActiveX object is anchored in its container (0=None, 1=Bottom, 2=Top, 3=Left, 4=Right, 5=Center, 6=Container) | |
ACTIVEX |
Identifies the object as an instance of the ActiveX class | |
|
The ID string that identifies the ActiveX control | |
(ACTIVEX) |
Identifies the object as an instance of a custom class. When no custom class exists, defaults to baseClassName | |
|
A short description of the ActiveX control | |
|
|
The object that contains the ActiveX control’s own properties, events, and methods
|
|
|
|
The following table lists the common properties, events, and methods of the ActiveX class:
Property |
|
Event |
|
Method |
beforeRelease |
Description
An ActiveX object in dBASE Plus is a place holder for an ActiveX control, not an actual ActiveX control.
To include an ActiveX control in a form, create an ActiveX object on the form. Set the classId property to the component’s ID string.Once the classId is set, the component inherits all the published properties, events, and methods of the ActiveX control, which are accessible through the nativeObject property. The object can be used just like a native dBASE Plus component.