Command BarPopup Properties

The Application, Creator, and Parent properties are defined at the beginning of this appendix.

Name

Returns

Description

BeginGroup

Boolean

Set/Get whether the specified CommandBarPopup appears at the beginning of a group of controls on the command bar.

BuiltIn

Boolean

Read-only. Returns True if the specified command bar or command bar control is a built-in command bar or control of the container application. Returns False if it's a custom command bar or control, or if it's a built-in control whose OnAction property has been set.

Caption

String

Set/Get the caption text of the CommandBarPopup.

CommandBar

CommandBar

Read-only. Returns a CommandBar object that represents the menu displayed by the specified popup control.

Name

Returns

Description

Controls

CommandBar Controls

Read-only. Returns a CommandBarControls object that represents all the controls on a command bar popup control.

Description Text

String

Set/Get the description for a CommandBarPopup. The description is not displayed to the user, but it can be useful for documenting the behavior of the control for other developers.

Enabled

Boolean

Set/Get whether the CommandBarPopup object is enabled.

Height

Long

Set/Get the height of the CommandBarPopup.

HelpContext Id

Long

Set/Get the Help context Id number for the Help topic attached to the CommandBarPopup.

HelpFile

String

Set/Get the file name for the Help topic for the Command BarPopup.

Id

Long

Read-only. Returns the Id for a built-in CommandBarPopup.

Index

Long

Read-only. Returns a Long representing the index number for the CommandBarPopup object in the CommandBars collection.

IsPriority Dropped

Boolean

Read-only. Returns whether the CommandBarPopup is currently dropped from the menu or toolbar, based on usage statistics and layout space. (Note that this is not the same as the control's visibility, as set by the Visible property.) A CommandBarPopup with Visible set to True will not be immediately visible on a Personalized menu or toolbar if IsPriorityDropped is True.

Left

Long

Read-only. Returns the horizontal position of the Command BarPopup (in pixels) relative to the left edge of the screen. Returns the distance from the left side of the docking area.

OLEMenu Group

MsoOLEMenu Group

Set/Get the menu group that the specified CommandBar Popup belongs to when the menu groups of the OLE server are merged with the menu groups of an OLE client. Read-only for built-in controls.

OLEUsage

MsoControl OLE Usage

Set/Get the OLE client and OLE server roles in which a CommandBarPopup will be used when two Microsoft Office applications are merged.

OnAction

String

Set/Get the name of a Visual Basic procedure that will run when the user clicks or changes the value of a CommandBarPopup.

Parameter

String

Set /Get a string that an application can use to execute a command.

Name

Returns

Description

Priority

Long

Set/Get the priority of a CommandBarPopup.

Tag

String

Set/Get information about the CommandBarPopup — for example, data to be used as an argument in procedures.

TooltipText

String

Set/Get the text displayed in the CommandBarPopup object's ScreenTip.

Top

Long

Read-only. Returns the distance (in pixels) from the top edge of the CommandBarPopup to the top edge of the screen.

Type

MsoControl Type

Read-only. Returns the type of CommandBarPopup.

Visible

Boolean

Set/Get whether the CommandBarPopup is visible.

Width Long Set/Get the width (in pixels) of the specified Command

BarPopup.

0 0

Post a comment