Guaranteed Hits to your web site!












Learn Visual Basic 6.0


Appendix I: Visual Basic Symbolic Constants


OLE Container Control Constants

OLEType Property
Constant Value Description
vbOLELinked 0 OLE container control contains a linked object.
vbOLEEmbedded 1 OLE container control contains an embedded object.
vbOLENone 3 OLE container control doesn't contain an object.


OLEType Allowed Property
Constant Value Description
vbOLEEither 2 OLE container control can contain either a linked or an embedded object.


Update Options Property
Constant Value Description
vbOLEAutomatic 0 Object is updated each time the linked data changes.
vbOLEFrozen 1 Object is updated whenever the user saves the linked document from within the application in which it was created.
vbOLEManual 2 Object is updated only when the Action property is set to 6 (Update)


Auto Activate Property
Constant Value Description
vbOLEActivateManual 0 OLE object isn't automatically activated.
vbOLEActivateGetFocus 1 Object is activated when the OLE container control gets the focus.
vbOLEActivateDoubleclick 2 Object is activated when the OLE container control is double-clicked.
vbOLEActivateAuto 3 Object is activated based on the object's default method of activation.


Size Mode Property
Constant Value Description
vbOLESizeClip 0 Object's image is clipped by the OLE container control's borders.
vbOLESizeStretch 1 Object's image is sized to fill the OLE container control.
vbOLESizeAutoSize 2 OLE container control is automatically resized to display the entire object.
vbOLESizeZoom 3 Object's image is stretched but in proportion.


Display Type Property
Constant Value Description
vbOLEAutomatic 0 Object is updated each time the linked data changes.
vbOLEFrozen 1 Object is updated whenever the user saves the linked document from within the application in which it was created.


Updated Event Constants
Constant Value Description
vbOLEChanged 0 Object's data has changed.
vbOLESaved 1 Object's data has been saved by the application that created the object.
vbOLEClosed 2 Application file containing the linked object's data has been closed.
vbOLERenamed 3 Application file containing the linked object's data has been renamed.


Special Verb Values
Constant Value Description
vbOLEPrimary 0 Default action for the object.
vbOLEShow -1 Activates the object for editing.
vbOLEOpen -2 Opens the object in a separate application window.
vbOLEHide -3 For embedded objects, hides the application that created the object.
vbOLEInPlaceUIActivate -4 All UI's associated with the object are visible and ready for use.
vbOLEInPlaceActivate -5 Object is ready for the user to click inside it and start working with it.
vbOLEDiscardUndoState -6 For discarding all record of changes that the object's application can undo.


Verb Flag Bit Masks
Constant Value Description
vbOLEFlagEnabled 0x0 Enabled menu item.
vbOLEFlagGrayed 0x1 Grayed menu item.
vbOLEFlagDisabled 0x2 Disabled menu item.
vbOLEFlagChecked 0x8 Checked menu item.
vbOLEFlagSeparator 0x800 Separator bar in menu item list.
vbOLEMiscFlagMemStorage 0x1 Causes control to use memory to store the object while it's loaded.
vbOLEMiscFlagDisableInPlace 0x2 Forces OLE container control to activate objects in a separate window.


VBTranslate Color/OLETranslate Color Constants
Constant Value Description
vbInactiveCaptionText 0x80000013 Color of text in an inactive caption.
vb3DHighlight 0x80000014 Highlight color for 3-D display elements.
vb3DFace 0x8000000F Dark shadow color for 3-D display elements.
vbMsgBox 0x80000017 Background color for message boxes and system dialog boxes.
vbMsgBoxText 0x80000018 Color of text displayed in message boxes and system dialog boxes.
vb3DShadow 0x80000010 Color of automatic window shadows.
vb3DDKShadow 0x80000015 Darkest shadow.
vb3DLight 0x80000016 Second lightest of the 3-D colors (after vb3DHighlight)


Pen Line


Counter Hit Counter Hit


This Homepage is special brought to you by CK Tan
Hosted by www.Geocities.ws

1