Skip to content

OLEContainerConstants

A combined enumeration containing every option value used by the OLE container control. Each logical group of values has a more specific enumeration of its own --- see the See Also section --- but OLEContainerConstants retains all of the original VB6 names so existing code continues to compile.

OLE type

ConstantValueDescription
vbOLELinked0The object is linked to its source.
vbOLEEmbedded1The object is embedded inside the container.
vbOLEEither2Either linked or embedded.
vbOLENone3No object.

Update options

ConstantValueDescription
vbOLEAutomatic0The container updates the linked object whenever the source changes.
vbOLEFrozen1Updates are paused.
vbOLEManual2Updates happen only when Update is called.

Activation triggers

ConstantValueDescription
vbOLEActivateManual0Manual activation via DoVerb.
vbOLEActivateGetFocus1Activate on focus.
vbOLEActivateDoubleclick2Activate on double-click.
vbOLEActivateAuto3Activate automatically based on the object's defaults.

Sizing

ConstantValueDescription
vbOLESizeClip0The object is clipped at the container's edges.
vbOLESizeStretch1The object is stretched to fill the container.
vbOLESizeAutoSize2The container resizes itself to fit the object.
vbOLESizeZoom3The object is scaled to fit, preserving its aspect ratio.

Display style

ConstantValueDescription
vbOLEDisplayContent0The object's contents are displayed.
vbOLEDisplayIcon1The object is displayed as an icon.

Status

ConstantValueDescription
vbOLEChanged0The object has been changed since the last update.
vbOLESaved1The object has been saved.
vbOLEClosed2The object has been closed.
vbOLERenamed3The object has been renamed.

Verbs

ConstantValueDescription
vbOLEPrimary0Invoke the object's primary verb.
vbOLEShow-1Show the object.
vbOLEOpen-2Open the object in a separate window.
vbOLEHide-3Hide the object.
vbOLEUIActivate-4Activate the object's user interface.
vbOLEInPlaceActivate-5Activate the object in place.
vbOLEDiscardUndoState-6Discard any undo state the object holds.
ConstantValueDescription
vbOLEFlagGrayed1The verb appears grayed in the menu.
vbOLEFlagDisabled2The verb is disabled.
vbOLEFlagChecked8The verb appears with a check mark.
vbOLEFlagSeparator2048The item is rendered as a menu separator.

Miscellaneous

ConstantValueDescription
vbOLEMiscFlagMemStorage1The object's storage is held in memory rather than on disk.
vbOLEMiscFlagDisableInPlace2In-place activation is disabled for this object.

See Also

twinBASIC and LOGO copyright of "WaynePhillipsEA" author