ObjectVerbFlags Property

Object List Next Object

Defined By:
OLE Control

Description:

Determines the menu state for each verb supported by a particular OLE object.

Details:

The default is the first verb in the ObjectVerbs list. All other verbs can be displayed in a menu. The ObjectVerbFlags list holds information about the menu state (such as grayed, checked, etc.) for each verb associated with a particular OLE object. The flags are indexed using the ObjectVerbsIndex Property.

When displaying a menu containing an object
s verbs, check the value of this property to see how the item should be displayed.

The following table lists the possible return values and menu states for the ObjectVerbFlags Property.

Value
Name
Menu State
&H0000
VF_ENABLED
The menu item should be enabled.
&H0001
VF_GRAYED
The menu item should be grayed.
&H0002
VF_DISABLED
The menu item should be disabled (but not grayed).
&H0008
VF_CHECKED
The menu item should be checked.
&H0800
VF_SEPARATOR
The menu item is a separator bar.
The ObjectVerbsCount, ObjectVerbsFlag, and ObjectVerbs Properties are often used together to set up and build a menu that gives the current list of verbs that an object supports along with the current state of each verb. An example of this is the Object Command that many applications displaying OLE objects include. When the user selects Edit Object, a menu drops down to display the object's verbs.

Data Type: String