Thanks for your code. From your code wrote un another object who intercept
WM_Enabled event and redraw the control when is disabled using TCanvas
property. All works better than was expected. If you want I try to send you
this code. Was standard aproach to solve probleme. After you reveceived my code
I have a new question: How is possible to work only with Canvas of control
without rewrote and inheritence Class.
Thanks
Adrian
I have a bad english, I'm sorry.
Charlie Chambers <[EMAIL PROTECTED]> wrote:
Hi,
>If i 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 complicated at first view,
>but rational
>way. I understand 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 text changed and after that invalidate control to repaint ?
I understand, but once you see the code i sent to your private mail box, i
think you'll agree this is much easier than your proposal. Rewriting the
component easily and modifying the behavior is the big "+" to OOPs.
Cheers,
Charlie
[Non-text portions of this message have been removed]
---------------------------------
Finding fabulous fares is fun.
Let Yahoo! FareChase search your favorite travel sites to find flight and hotel
bargains.
[Non-text portions of this message have been removed]