We help IT Professionals succeed at work.

TPanel.BeginUpdate ?

Andi4553
Andi4553 asked
on
Medium Priority
1,462 Views
Last Modified: 2010-04-06
Hi, how can i implement a TPanel.BeginUpdate ?
I have a Panel, where some other Components are inside (other Panels, Editcontrols ...)
I would like to Lock the Panel (no further Updates), Realign all childcontrols, add some controls, Unlock the panel, invalidate the panel.
Comment
Watch Question

Commented:
You could try the win32 API "LockWindowUpdate".

Regards, Madshi.

Commented:
Hi all!

What about playing with DisableAlign & EnableAlign methods of TPanel? Remember only that each call of DisableAlign must be matched with corresponding call of EnableAlign (see online help for TWinControl).

example:

Panel1.DisableAlign;
try
  // do all manipulations with child controls of the Panel1
finally
  Panel1.EnableAlign;
end;


Hope this helps, Ivo.
Andi4553:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
CERTIFIED EXPERT

Commented:
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

accept Madshi's comment as answer

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

Thanks,

geobul
EE Cleanup Volunteer