Combos in Table Don't Scroll [message #448011] |
Thu, 23 December 2004 14:35  |
Eclipse User |
|
|
|
I have an SWT Table where each row contains a Combo box. However, when
the rest of the table scrolls to look at additional rows, the Combo box
columns do not scroll. Any ideas how to make the combo boxes scroll along
with the rest of the rows?
Code:
...
Composite compositeTab2 = new Composite( tabFolder, SWT.NO_REDRAW_RESIZE );
Table table = new Table( compositeTab2, SWT.SINGLE | SWT.FULL_SELECTION );
table.setBounds( 40, 90, 740, 200 );
table.setSize( 740, 200 );
...
Table Item tableItemsTab2[ i ] = new TableItem( table, SWT.NONE );
final Combo claimsDrop = new Combo( table, SWT.DROP_DOWN | SWT.READ_ONLY |
SWT.SIMPLE );
|
|
|
ANSWERED Combos in Table Don't Scroll [message #448013 is a reply to message #448011] |
Thu, 23 December 2004 16:05  |
Eclipse User |
|
|
|
This turned out to be my error. I had repeated some code for the
TableEditor [used to allow the Combo to appear in a row] and I was using
the TableEditor reference for another table. My mistake.
Thank you,
Ty
Tyrone Hed wrote:
> I have an SWT Table where each row contains a Combo box. However, when
> the rest of the table scrolls to look at additional rows, the Combo box
> columns do not scroll. Any ideas how to make the combo boxes scroll along
> with the rest of the rows?
> Code:
> ...
> Composite compositeTab2 = new Composite( tabFolder, SWT.NO_REDRAW_RESIZE );
> Table table = new Table( compositeTab2, SWT.SINGLE | SWT.FULL_SELECTION );
> table.setBounds( 40, 90, 740, 200 );
> table.setSize( 740, 200 );
> ...
> Table Item tableItemsTab2[ i ] = new TableItem( table, SWT.NONE );
> final Combo claimsDrop = new Combo( table, SWT.DROP_DOWN | SWT.READ_ONLY |
> SWT.SIMPLE );
|
|
|
Powered by
FUDForum. Page generated in 0.04416 seconds