Charlie Chambers <[EMAIL PROTECTED]> wrote: Greetings, >I need to be clRed par example. How Ican do that in a simple way ?
I'm understanding your wanting to have the text font color = clRed and the background = clWhite. If so then you have to "hack" the component in order to do this. The Enabled property is inherited from TControl so you can't do this without the hack. If your wanting to have the background=clRed and the text font color = clgray then just use the component color to set. i've a quick demo written if that would be of help. Write me off the group if you wish me to send to your private mail box. Good question and Thanks!! Cheers, Charlie [Non-text portions of this message have been removed] If ai create an inheritance of class and I rewrote, recompiling the new object I change the clGray from VCL source in what I want, but it is complicat at first view, but rational way. I understant that. I want another solution for that, like: if possible to capture the canvas of control and on event wm_enabled after produced to repaint this canvas with color teext changed and after that invalidate control to repaint ? Thank --------------------------------- Food fight? Enjoy some healthy debate in the Yahoo! Answers Food & Drink Q&A. [Non-text portions of this message have been removed]