- For individual users
- Instant access to solutions
- Ask your tech questions
- Start your 30-day Free Trial
Main Topics
Browse All TopicsI am very new on Borland C++ Builder. I would like to know how can I change the color of a button from grey to blue? I read something said I have to use owner-draw capability, what is this?
Thanks in advance.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: KdoPosted on 2003-02-17 at 07:22:50ID: 7966591
Borland's implementation of certain objects (like TButton) is a simple wrapper around the lower-level class object. In this case, the TButton that you're trying to program/manipulate.
If you just want to change the font color, define the object as a TBitBtn and the font color can be set to anything that you want.
If you want to change the background (button) color, then you'll have to resort another solution such as owner-draw or third-party Buttons that allow you to change the color.
This is a topic that comes up VERY frequently on the Borland newsgroups. The TButton inherits the color from Windows (the colors that you selected from the "appearances" tab.
I'm surprised that they haven't added the color feature to the TButton object. In the meantime, look at www.torry.net for a third party Button that will allow you to change its color. There are a lot of other sites that provide good third party Buttons with this feature.
Kdo