slow painting TPageControl


2005-06-19 08:07:13 PM
kylix2
Hi,
i create on the fly a frame. The frame contains a pagecontrol with tabsheets.
I set frame.parent := ... ->3 paint-messages for pagecontrol.
In my real application need 1 paint (Pagecontrol) 0,3-0,4 s.
3 paints ->more than 1 sec. (very bad).
When i ignore 2 painting events is the result bad (no tabs visible).
When i ignore 1 painting event is the performance better an the result is ok, but it is dirty code!!!
What can I do for a better performance?
Torsten