Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Combo with vertical scroll doesn't work
Combo with vertical scroll doesn't work [message #552235] Wed, 11 August 2010 11:44 Go to next message
Eclipse User is currently offline Eclipse UserFriend
Messages: 34
Registered: July 2010
Member
Hi !

I'm using a READ_ONLY combo in my wizard :

combo = new Combo(container, SWT.READ_ONLY );
combo.setVisibleItemCount(2);
combo.setItems(new String[] {"aa", "bbb", "sss","aa"});
GridData gd_combo = new GridData(SWT.FILL, SWT.CENTER, true, false, 2, 1);
gd_combo.widthHint = 441;
combo.setLayoutData(gd_combo); 


My problem is that I want a vertcal scroll to appear in my combo , but the setVisibleItemCount doesn't seem to work in my case .
I've also added V_SCROLL but it doesn't work , it seems that it's a bug with linux because I've read that on windows the scroll appears !

What can I do to have the scroll Sad
Please help me to find the solution and thanks in advance .

[Updated on: Wed, 11 August 2010 12:28]

Report message to a moderator

Re: Combo with vertical scroll doesn't work [message #552338 is a reply to message #552235] Wed, 11 August 2010 18:58 Go to previous message
Lakshmi P ShanmugamFriend
Messages: 279
Registered: July 2009
Location: India
Senior Member
Sorry, Combo.setVisibleItemCount is not supported on Linux as GTK doesn't support this.
You can consider using the custom widget, CCombo, setVisibleItemCount works for CCombo.


Lakshmi P Shanmugam
Previous Topic:Freeze first row on table
Next Topic:Google buys Instantiations
Goto Forum:
  


Current Time: Tue Apr 16 06:00:28 GMT 2024

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

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

Back to the top