Posted 16 May 2019, 4:28 pm EST
Hello guys,
I´m looking for a non editable (Editable = false) combobox opening a custom subeditor when clicking on the dropdown button of the combobox.
I´ve tried this with a std. combobox celltype and a custom subeditor (derived from UserControl and ISubEditor). But this does not work. Clicking the dropdown button does not open the subeditor.
So I´ve tried a derived textcelltype ```
public class IST_TextCellTypeWithSubEditor : TextCellType
{
public override System.Windows.Forms.Control GetEditorControl(System.Windows.Forms.Control parent, FarPoint.Win.Spread.Appearance appearance, float zoomFactor)
{
System.Windows.Forms.Control myControl = base.GetEditorControl(parent, appearance, zoomFactor);
((GeneralEditor)myControl).ButtonStyle = FarPoint.Win.ButtonStyle.DropDown;
return myControl;
}
}
with the same subeditor and this works nearly perfectly. Clicking the dropdown button opens the subeditor.
BUT I found no property to set the textcelltype to non-editable (of course the dropdown button must be clickable...).
Any ideas about that.
Regards
Matthias