Toolbar Button Properties
The properties of a toolbar button are:
Property |
Description |
---|---|
ID |
Defines the ID for the button. The drop-down list provides common ID names. |
Width |
Sets the width of the button. 16 pixels is recommended. |
Height |
Sets the height of the button. Note that the height of one button changes the height of all buttons on the toolbar. 15 pixels is recommended. |
Prompt |
Defines the message displayed in the status bar. Adding \n and a name adds a ToolTip to that toolbar button. For more information, see Creating a ToolTip. |
Width and Height apply to all buttons. A bitmap that is used to create a toolbar has a maximum width of 2048. So if you set the button width to 512, you can only have four buttons and if you set the width to 513, you can only have three buttons.
For information on adding resources to managed projects, please see Resources in Applications in the .NET Framework Developer's Guide. For information on manually adding resource files to managed projects, accessing resources, displaying static resources, and assigning resources strings to properties, see Walkthrough: Localizing Windows Forms and Walkthrough: Using Resources for Localization with ASP.NET.
Requirements
MFC or ATL
See Also
Tasks
Changing the Properties of a Toolbar Button