how to change the dropdown list of TComboBox?

1.2k Views Asked by At

I have a TComboBox and I want to change its dropdown list and replace it with my own control which is (TYazTreeList)

What is the easiest way?

I want to inherit a new control from TComboBox (lets call it TYazComboBox)

Thank you.

1

There are 1 best solutions below

4
On

TComboBox subclasses the Microsoft Windows' COMOBOX window class from the Windows Common Control library. COMBOBOX provides the dropdown, so you should either replace that, or completely write your TYazComboBox class (which some 3rd party Delphi control vendors did). Both options are hard.