Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 19:35 Go to next message
Tyrone Hed is currently offline Tyrone HedFriend
Messages: 79
Registered: July 2009
Member
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 21:05 Go to previous message
Tyrone Hed is currently offline Tyrone HedFriend
Messages: 79
Registered: July 2009
Member
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: Sun Oct 25 05:46:57 GMT 2020

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

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

Back to the top