CntrlType property
Gets or sets the control type of a menu, menu item, or toolbar item.
Version added
4.0
Syntax
| |
| |
object |
Required. An expression that returns a Menu, MenuItem, or ToolbarItem object. |
intVal |
Required Integer. The control type of the object. |
Remarks
If you are adding a custom toolbar button, set the CntrlType property to visCtrlTypeBUTTON. The following table describes the control types declared by the Visio type library in VisUICtrlTypes.
Constant |
Value |
visCtrlTypeBUTTON |
2 (&H2) |
visCtrlTypeSPLITBUTTON |
16 (&H10) |
visCtrlTypeSPLITBUTTON_MRU_COLOR |
17 (&H11) |
visCtrlTypeSPLITBUTTON_MRU_COMMAND |
18 (&H12) |
visCtrlTypeBUTTON_OWNERDRAW |
33 (&H21) |
visCtrlTypeEDITBOX |
64 (&H40) |
visCtrlTypeCOMBOBOX |
128 (&H80) |
visCtrlTypeCOMBOBOX_SORTED |
129 (&H81) |
visCtrlTypeDROPDOWN_OWNERDRAW |
256 (&H100) |
visCtrlTypeDROPDOWN_SORTED_OWNERDRAW |
257 (&H101) |
visCtrlTypeDROPDOWN |
272 (&H110) |
visCtrlTypeDROPDOWN_SORTED |
273 (&H111) |
visCtrlTypeLABEL |
2048 (&H800) |
visCtrlTypeSWATCH |
32768 (&H8000) |
visCtrlTypeSWATCH_COLORS |
32769 (&H8001) |