Bug 4473 - DCR - need API to begin/end defer layout (1FMGFRP)
Summary: DCR - need API to begin/end defer layout (1FMGFRP)
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 2.0   Edit
Hardware: All All
: P5 normal (vote)
Target Milestone: 3.1 M5   Edit
Assignee: Silenio Quarti CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-10-11 14:17 EDT by Mike Wilson CLA
Modified: 2005-01-25 11:38 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Wilson CLA 2001-10-11 14:17:23 EDT
AWT has it's own layout managers.  Since it is not using the SWT layouts and is doing layout
at a different time (i.e. not inside the resize event), we need a mechanism to indicate when 
we are doing layout so that we can stop the OS from responding to every size change 
being made in the widgets during layout.

Currently there is no way to do this.  It would be nice to have this in the form of two calls
that can begin and end deferring of layout on a Composite.

NOTES:

SN (5/16/00 5:09:29 PM)
	Why is this a problem?  Do other implementations of AWT have such a mechanism?
	I believe that you are really seeing a problem and I'd like to know what it is.

SSQ/MVM (5/17/00 11:41:31 AM) -
	It is a performance problem, since the OS posts events back during layout (WM_SIZE).

	Yes, other implementations have the mechanism.

SN (5/17/00 1:46:19 PM)
	Can you describe it or point me to some code?

SN (5/17/00 3:58:38 PM)
	SSQ to try:
			setLayout (deferLayout);
			layout ();
			setLayout (null);

	McQ (2/1/01 2:43:34 PM) -
		SSQ to indicate status.
Comment 1 DJ Houghton CLA 2001-10-29 16:15:57 EST
PRODUCT VERSION:

SWT 032

Comment 2 Silenio Quarti CLA 2002-09-17 00:24:07 EDT
Is anyone interested on this bug?
Comment 3 Silenio Quarti CLA 2002-09-17 00:32:26 EDT
David,

This bug was entered a while back by myself. Do you think
it is still valid?

Silenio
Comment 4 David Whiteman CLA 2002-09-17 09:00:32 EDT
It might be.  Off the top of my head, this could help reduce flickering.  Any 
thoughts on this, Pat?
Comment 5 Veronika Irvine CLA 2005-01-25 11:37:32 EST
See Composite.setLayoutDeferred(boolean).