What would like to see in the doc: Some thing like:
When the pad is actually drawn painted, it goes through its elements in the sequence of Draw calls; for TExec it executes its command - which sets palette globally, so it will set the palette for painting all objects afterwards (including all other pads and their elements). If in the next pad another TExec changes the palette, it doesn’t affect the previous pad which was already painted, but it will affect the current and those painted later.
And before that to say when palette is used (so what one active palette means) -> during paint -> when pad is first drawn on screen, when it is clicked, during SaveAs (provided that I am right here). I understand that the difference between Draw and actual moment of painting is not really associated with TColor - it is a general graphics issue - but then for palette this distinction is of profound significance. Obviously if a good discussion of this is given elsewhere, one can just put a link to this discussion.
Thanks. I see already the commit. Since the TExec trick is present in TColor doxygen, will you improve there as well? What about the Draw vs Paint which leads to the need of the trick?