Search code examples
delphicombobox

How to make ComboBox drop-down button invisible in Delphi?


Is there some easy way to customize a ComboBox from Delphi to make the dropdown button with the arrow invisible? I mean without a lot of custom-draw code.. Maybe there is some control specific windows flag to set.


Solution

  • If I understand you correctly, you want all the functionality of the cxDBLookupComboBox, just not the button.

    Try this in the FormCreate:

    cxDBLookupComboBox1.Properties.Buttons.Clear;
    

    You can access other combo box buttons properties via non-published Buttons property just like that.