Share

MiniToolbarComboBox.AddItem Method

Parent Object: MiniToolbarComboBox

Description

Method that adds an item to the controls list.

Syntax

MiniToolbarComboBox.AddItem( Text As String, ToolTipText As String, [InternalName] As String, [AllowDelete] As Boolean, [StandardIcon] As Variant, [LargeIcon] As Variant, [Index] As Long ) As MiniToolbarListItem

Parameters

Name Type Description
Text String Input String that specifies the text for the item.
ToolTipText String Input String that specifies the tooltip text for the item. This is used as the tooltip for the control when this item is selected.
InternalName String Optional input String that specifies an internal name for the control. You can provide this for convenience in identifying the item at a later time. If provided, it must be unique with respect to all other items in this combo box.

This is an optional argument whose default value is "".
AllowDelete Boolean Optional input Boolean that specifies whether the user can delete this item from the combobox. Defaults to False if not provided.

This is an optional argument whose default value is False.
StandardIcon Variant Optional input IPictureDisp that specifies the icon to use for the item. A standard size icon is 16 pixels wide and 16 pixels high.

This is an optional argument whose default value is null.
LargeIcon Variant Optional input IPictureDisp that specifies the large icon to use for the item. A large size icon is 24 pixels wide and 24 pixels high.

This is an optional argument whose default value is null.
Index Long Optional input Long value that specifies the 1-based index at which to add the item. If not specified, the item is added at the end.

This is an optional argument whose default value is 0.

Version

Introduced in version 2012

Was this information helpful?