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

anchor

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)

baseClassName

ACTIVEX

Identifies the object as an instance of the ActiveX class

classId

 

The ID string that identifies the ActiveX control

className

(ACTIVEX)

Identifies the object as an instance of a custom class. When no custom class exists, defaults to baseClassName

description

 

A short description of the ActiveX control

nativeObject

 

 

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

before
borderStyle

dragEffect
form

height

left

name

pageno
parent

printable

speedTip

systemTheme

top

width

beforeRelease
onClose

onDragBegin

onLeftDblClick

onLeftMouseDown

onLeftMouseUp

onMiddleDblClick

onMiddleMouseDown

onMiddleMouseUp

onMouseMove
onRightDblClic
k
onRightMouseDown

onRightMouseUp

drag( )

move( )
release( )

setFocus( )

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.