Some usage and description of toolbar controls in C + + Builder collation

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.