AutoActivate Property

See Also6H840HD

Applies To

OLE control2HQDVVU.

Description

Allows the user to activate an object by double-clicking the OLE control, or by giving the OLE control the focus.

Usage

[form.]ole.AutoActivate = [setting ]

Setting

The AutoActivate property settings are:

Setting         Description

 

0                   Manual.  The OLE object is not automatically activated.  You can activate an object programmatically by setting Action = 7 (OLE_ACTIVATE).

1                   Focus.  If the OLE control contains an object, the application that provided the object will be activated when the OLE control gets the focus.

2                   (Default) Double-Click.  If the OLE control contains an object, the application that provided the object will be activated when the user double-clicks the OLE control or presses Enter when the control has the focus.

 

Remarks

You can determine if the OLE control contains an object by querying the OleType property.

Some objects can be activated from within the OLE control.  When such an object is activated, the user can edit the object (or perform some other action) from inside the boundaries of the OLE control.  This feature is called In-Place Activation.  If an object supports In-Place Activation, you can set AutoActivate to 1 (Focus) to activate an object when the OLE control gets the focus.

 

Note   When AutoActivate is set to 2 (Double-Click), the DblClick event does not occur when the user double-clicks an OLE control.

 

Data Type

IntegerDOKXHY (Enumerated)


See Also

Help:

Action Property04T78S3

OleType Property12K24M2

 

Programmer's Guide:

Chapter 22, "Object Linking and Embedding (OLE)"