[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform.swt] Re: size of a composite
|
Calling computeSize(SWT.DEFAULT, SWT.DEFAULT) does not give you the current
size. It gives you the preferred size of the widget. Depending on your
layout, this can be quite different from the size of the widget.
If you want to do something when the widget changes size, you should add a
Resize listener (addControlListener() and handle controlResized).
"Karei" <katharinas_mail@xxxxxx> wrote in message
news:op.s00jwfkdtt899o@xxxxxxxxxxxxxxxxxxx
> give ComputeSize a try: composite.computeSize(SWT.DEFAULT, SWT.DEFAULT)
Thanks a lot, it worked!