tcombobox

How a Combobox with the csOwnerDrawFixed Style can behave like the csDropDown style?

和自甴很熟 提交于 2019-12-03 12:53:47
I'm using a TComboBox component with the style property set to csOwnerDrawFixed , I implement the OnDrawItem And everything works fine, Now I want which the combobox to behave like when had the csDropDown style (with the csOwnerDrawFixed style behaves like the csDropDownList style) , I mean with a inner editor. is this possible? Delphi's TComboBox wrapper doesn't support an owner draw editable style, but the underlying Windows control does, and it's easy to enable it. Create a new descendant class like so: TComboBox = class(StdCtrls.TComboBox) public procedure CreateParams(var Params: