Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [albireo-dev] SWT size/layout management

Bruno Haible wrote:

What's the relation between ControlListener and layout()?

I'm not sure that this will answer your questions but...

The controlResized() method is called as part of the setBounds() implementation, which means it can be (indirectly) triggered by a call to layout(). controlResized() is also called as a result of a user-initiated resize.

I can imagine layout() being called from a ControlListener if it is necessary for an application to synchronize the sizes of multiple widgets under its control, or if a composite widget needs to synchronize the sizes of its child widgets.




Back to the top