Re:TPanel strange behavior during repaint
Quote
"Steve" <steve_alettoA...@SPAMhotmail.com> wrote in message
news:3e967d2e@newsgroups.borland.com...
Quote
> I have 400 TPanels on a form.
That is WAY too many to have on a single form at the same time. I'm
guessing you don't realize just how many resources that takes up. TPanel is
a TWinControl descendant. Thus it is a windows control. Every windows
control has a HWND window, which in turn has a group of resources associated
with it - a window, fonts, pens, brushes, etc. Multiple that amount by 400
and it becomes very large. It's no wonder your form is so slow, the OS is
doing an extremely large amount of processing to manage all of those
resources for you. You seriously need to re-think your form's design to
slim it down, move controls into separate windows, etc.
Quote
> it seems they're deleted and then re-created.
Not deleted - simply drawn over with a a blank slate first for the
background, and then the actual contents on top of it.
Gambit