Lazarus

Programming => LCL => Topic started by: Dibo on October 06, 2010, 08:19:30 pm

Title: How to speed up loading of components
Post by: Dibo on October 06, 2010, 08:19:30 pm
Hi,

I have form and some components. One of them is a TPanel. This panel contains a lot of buttons created on runtime (this panel is kind of buttons list - each button have align=alTop). User can clear this list or add more buttons. I think, when I load list of buttons, panel is repainted every time when I add a new button. Can I somehow lock painting panel when adding buttons? Somethink like TListView.BeginUpdate and TListView.EndUpdate.

Regards.
Title: Re: How to speed up loading of components
Post by: Leledumbo on October 07, 2010, 08:25:41 am
What about TForm.BeginFormUpdate and TForm.EndFormUpdate?
Title: Re: How to speed up loading of components
Post by: Dibo on October 07, 2010, 02:09:06 pm
Hm, I try with this. Thanks
TinyPortal © 2005-2018