|
Re: Trouble with Sash setWeights [message #452389 is a reply to message #452388] |
Sat, 19 March 2005 02:04 |
Eclipse User |
|
|
|
Originally posted by: doug-list.threepenny.net
The SashForm requires the child controls (the windows being moved) to
have already been created before the weights can be set. Otherwise it
throws an exception (it checks that the number of weights == the number
of controls being managed).
Could that be your problem? (I think your sample code would throw).
MP wrote:
> Not sure what is going wrong, but when I attempt to set the weight of a
> sash, the whole sash disappears.
>
> final SashForm MainSash - new SashForm(shell, SWT.HORIZONTAL);
> int weights[] = {20,80};
> MainSash.setWeights(weights);
>
> Anyone have experience with this that may be able to pick out the problem?
|
|
|
|
Powered by
FUDForum. Page generated in 0.03051 seconds