[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.platform.swt] Re: ComboBoxCellEditor ComboBox always on???

Chris schrieb:
> Tom:
> 
> Thanks for your answer.
> 
> Regarding:
>> The only thing you need to to make this work together with
>> ComboBoxCellEditor is that you need to hide the CCombo before the
>> CellEditor is displayed to the user.
> 
> I do not want to hide the ComboBox, but always leave it there.  So there
> is a way to use this type of behavior with the ComboBoxCellEditor?
> 
> Thanks,
> 

That's what I tried to tell you. You only have 1 ComboBoxCellEditor for
a column but you need one for *every* row. To give your users the
impression of DropDowns although the editor is not active you have to
put them up your own using the snippet i proposed and just at the moment
when the user clicks an CCombo (=starts editing) you hide it and let
JFace replace it with its configured ComboBoxCellEditor who looks
completely the same than the customly provided CCombo.

Tom