Skip to main content



      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 07:44 Go to next message
Eclipse UserFriend
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 08:28] by Moderator

Re: Combo with vertical scroll doesn't work [message #552338 is a reply to message #552235] Wed, 11 August 2010 14:58 Go to previous message
Eclipse UserFriend
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.
Previous Topic:Freeze first row on table
Next Topic:Google buys Instantiations
Goto Forum:
  


Current Time: Tue Jul 08 20:29:47 EDT 2025

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

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

Back to the top