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 ShanmugamFriend
Messages: 275
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:SWT Monitor
Goto Forum:
  


Current Time: Tue Oct 24 00:36:04 GMT 2017

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

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