1, in the toolbar can display the picture and the text, the picture placement way needs images and a ImageList component wants to associate.
Several of these concepts are:
ImageList How does a picture control size? In fact, ImageList in the picture is the overall control size, the default is heightxweight = 16x16 change to the desired size can be
ImageList for background transparent picture By default is the background is black! Here to control the ColorDepth property of the ImageList, do not use the same as the device, using Cd32bit.
The Caption property of the toolbar related Toolbutton has changed without text display! Here to open the toolbar inside the Showcaption Property!
2, when toolbar showcaption=true, set Buttonwidth and Buttonheight properties is not working, in the properties can not be modified.
Showcaption=true, if the button (Toolbutton) 's AutoSize property is set to True, the width of each button is automatically calculated by its caption length, if AutoSize is set to False, The width of each button is set by the widest button.
3, toolbar toolbar How to set the implementation by pressing the tool bar after the button, press the twist does not play up, and press the other button in the tool bar, the last press of the button to play, this button is pressed state?
Add a button in toolbar and set the two properties of Toolbutton
One is style set to Tbscheck
One is grouped (group) set to True
4. Set the Drawingstyle property of the toolbar control to Dsgradient, and then set the Gradientendcolor background to a gradient color by adjusting the color values of the Gradientstartcolor and toolbar two properties ,
However, this gradient color effect is affected by the skin style after the XE2 version, which is only available under Windows default skin.
Some usage and description of toolbar controls in C + + Builder collation