Board index » delphi » forms vrs panels

forms vrs panels

i'm developing an app that will have 20+ TForms.  after come coding i
thought of using TPanels instead of TForms.

the reason is that the panels work and look better in my app.

my question is this:  do panels use more or less resources, memory, etc.
than forms?  is there some performance issue that i am overlooking in
using panels and not forms.

thanks for any help or ideas....steve

 

Re:forms vrs panels


Steve -

Both TPanel's and TForm's are really windows, so their *Windows*
resource consumption will be about the same. But a TForm is much more
complex than a TPanel, so the former will consume more memory. Not a
lot, but more.

If the TPanel can be embedded into an existing form, that's fine. But
don't put a TPanel on top of a new TForm.

Good luck.

Kurt

Re:forms vrs panels


thanks kurt...my panels and the form they will sit on will be all
predefined....

Quote
Kurt Barthelmess (TeamB) wrote:
> Steve -

> Both TPanel's and TForm's are really windows, so their *Windows*
> resource consumption will be about the same. But a TForm is much more
> complex than a TPanel, so the former will consume more memory. Not a
> lot, but more.

> If the TPanel can be embedded into an existing form, that's fine. But
> don't put a TPanel on top of a new TForm.

> Good luck.

> Kurt

Other Threads