Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » How to disable user editing/typing in a combo box editor in a table?
How to disable user editing/typing in a combo box editor in a table? [message #899686] Wed, 01 August 2012 20:43 Go to next message
Michael Dougherty is currently offline Michael DoughertyFriend
Messages: 8
Registered: July 2012
Junior Member
We currently an SWT table, with two columns - the second of which is editable. We are trying to narrow down the possible selections the user can enter as a value. On some tableitems we would like to make them ComboBoxes...

Using CCombo we have figured out how to make the table editor a combobox for certain table items, but we really want to restrict the user to JUST those choices. We would like him not to be able to type into the box, rather we would like him to select from the list.

Is there any way to implement this?
Re: How to disable user editing/typing in a combo box editor in a table? [message #899756 is a reply to message #899686] Thu, 02 August 2012 08:43 Go to previous messageGo to next message
Jan Krakora is currently offline Jan KrakoraFriend
Messages: 477
Registered: December 2009
Location: Prague
Senior Member
Hi, could you post some code? How are you creating the CCombo?
Re: How to disable user editing/typing in a combo box editor in a table? [message #899841 is a reply to message #899756] Thu, 02 August 2012 14:31 Go to previous message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2151
Registered: July 2009
Senior Member
Creating the CCombo with style SWT.READ_ONLY should do this.

On 8/2/2012 4:43 AM, Jan Krakora wrote:
> Hi, could you post some code? How are you creating the CCombo?
Previous Topic:Scroll bar appears in Win 7 and not in Win XP
Next Topic:Propagate / Forward MouseEvents and scrolling to parent
Goto Forum:
  


Current Time: Fri Dec 19 00:33:44 GMT 2014

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

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