[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.platform.swt] Re: Combos in menu

The problem is that its not a very dynamic situation. I don't see how (like in a layout) to just designate that it grab/fill the available space of the toolbar, which is the behavior I'm seeking.

Its not a big issue for now, Thanks.
-Mark

Jed wrote:
Hey Mark,
In order to change the length of the widget, just modify the default method
computeWidth in the AddressEntry. Its length at default is 350.
protected int computeWidth(Control control) {
System.out.println(control.getLayoutData());
return control.computeSize(350, SWT.DEFAULT, true).x;
}