SWT Combo horizontal length of the problem

Category: Eclipse
 
cquljx1
2013-08-20 05:14:46

Sponsored Links
Inheritance TitleAreaDialog a dialog layout with five equally sized GridLayout. An existing Combo, occupying four
question is:
once in Item Combo length slightly longer time, Combo exceeds the length of the interface a lot, that Combo will extend beyond the right side of the interface.
how to solve?

Sponsored Links

wuweifeng1
2013-08-20 05:30:38
I do not bully SWT ah, really

final GridData gridData_3 = new GridData (SWT.FILL, SWT.CENTER, false ,
false);
gridData_3.widthHint = 144;
combo_extend.setLayoutData (gridData_3);
baluk
2013-08-20 05:34:44
with TitleAreaDialog? harder, TitleAreaDialog where workArea The layout has set itself good.
can override protected Control createContents (Composite parent) {...}
inside and initialize Combo Combo added content.
typhoon01
2013-08-20 05:41:27
code Tieshanglai see again.
xvfeng0528
2013-08-20 05:48:25
inherited from TitleAreaDialog the Dialog how to make it inside the window size with the size of the control is changed it?
hudun
2013-08-20 06:06:16


doing very friendly. You can set up JCombo

not automatically expand, you can specify the width of the JCombo
santone
2013-08-20 06:16:55
I am using the swt Combo, with setsize method does not work, when the combo contents length is too long, combo or extend outside the window will automatically expand. . .
mly888
2013-08-20 06:24:12
Where to dare to bully Oh
Oh, miss the point, the knot stickers, give you points
Domain and server ip had changed since 8/23/2013. Suspend the user registration and posts for program maintenance.