Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Combos in Table Don't Scroll
Combos in Table Don't Scroll [message #448011] Thu, 23 December 2004 14:35 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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 );
Previous Topic:[ANN] Novocode Application Framework 0.2 released
Next Topic:newbie , pls help , thanks
Goto Forum:
  


Current Time: Wed Jul 23 19:26:22 EDT 2025

Powered by FUDForum. Page generated in 0.03576 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top