Recent

Author Topic: How to speed up loading of components  (Read 3850 times)

Dibo

  • Hero Member
  • *****
  • Posts: 1048
How to speed up loading of components
« 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.

Leledumbo

  • Hero Member
  • *****
  • Posts: 8746
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: How to speed up loading of components
« Reply #1 on: October 07, 2010, 08:25:41 am »
What about TForm.BeginFormUpdate and TForm.EndFormUpdate?

Dibo

  • Hero Member
  • *****
  • Posts: 1048
Re: How to speed up loading of components
« Reply #2 on: October 07, 2010, 02:09:06 pm »
Hm, I try with this. Thanks

 

TinyPortal © 2005-2018