[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.platform.swt] Re: problems with my composite

Grant Gayed schrieb:
...and I just remembered, after disposing-then-recreating the composite's
children, be sure to invoke layout() on the composite so that it will
calculate the appropriate sizes for all of the new children.

Ahh I found the problem. I invoked layout() together with pack(). That is wrong with only layout() it works fine ... Thanks.


But another question, why does pack() as well as computeSize(SWT.DEFAULT,SWT.DEFAULT) both give a preferred size of 64*64 of a canvas, which I set the size to 160x120 (because the image i put into has this size) ???

cu
Ilja