Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Canvas Propery on custom button

Status
Not open for further replies.

Wings

Programmer
Feb 14, 2002
247
US
Hi,
I want to make a Component based on a TButton Component;
however, I need to be able to change the buttons color.
Inorder to do this I believe that I have to access the Canvas property of the Button. The problem is TButton does not have a Canvas Property, How do I either access it or is there another way to control the color??

Help is appreciated,

Thanks
 
I think you have to wrap the Canvas VCL with your own. I say this because I'm looking at a three part article from September - November 2001 C++ Builder Developer's Journal by Reisdorph Publishing. See their web site at for how to subscribe. A bit pricey but well worth every penny, IMHO. The subscription will allow you access to their older articles. James P. Cottingham

I am the Unknown lead by the Unknowing.
I have done so much with so little
for so long that I am now qualified
to do anything with nothing.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top