Subject RE: [IBO] Using colorscheme
Author Riho-Rene Ellermaa
>I _suppose_ (but please check this) that when the OnStateChanged
>handler is called, the colors have already changed. If this is true,
>you could just copy the color from a know TIB_Edit:
>
> MyStandardControl.Edit := MyIB_Edit.Color;
>
>If it isn't true, maybe it's true for the AfterEdit, AfterDelete
>etc. events. You could write a single handler for all these events and
>copy the color.
>
>
>
>The color copying didn't work :(.
>Well, have to write a long switch statement.

Did you call inherited first in the OnStateChanged event?

Helen





Can you be little bit more specific? What inherited should I call.
I don't overwrite anything, I just set the OnStateChanged event.


Riho-Rene Ellermaa
senior programmer






[Non-text portions of this message have been removed]