Board index » delphi » TFilterComboBox and Icons

TFilterComboBox and Icons

Hi,

is it possible to add any, different, icons to a TFilterComboBox. Different
icon each line.
Similar to TDriveComboBox or TDirectoryListBox.

I'm using Delphi 2.0 c/s.

--
-----------------------------------------------------
Michael Fritz
mailto: frit...@degnet.baynet.de
-----------------------------------------------------
For PGP public key, send message with GET PGP KEY in the Subject

 

Re:TFilterComboBox and Icons


Quote
> is it possible to add any, different, icons to a TFilterComboBox. Different
> icon each line. Similar to TDriveComboBox or TDirectoryListBox.

Michael,

you could do that by deriving a new component from TFilterCombobox. The
overridden constructor would set the style of the combobox to
csOwnerDrawFixed, the overriden DrawItem method would then draw the icon plus
text. You would store the icons into the Items.Objects property. If you have
the VCL source, look at how TDriveCombobox does this, your component would be
very similar.

Peter Below (TeamB)  100113.1...@compuserve.com)
No e-mail responses, please, unless explicitely requested!

Re:TFilterComboBox and Icons


Thanx Peter, I will try out...

Mike

Peter Below <100113.1...@compuserve.com> schrieb in Nachricht ...

Quote
>> is it possible to add any, different, icons to a TFilterComboBox.
Different
>> icon each line. Similar to TDriveComboBox or TDirectoryListBox.

>Michael,

>you could do that by deriving a new component from TFilterCombobox. The
>overridden constructor would set the style of the combobox to
>csOwnerDrawFixed, the overriden DrawItem method would then draw the icon
plus
>text. You would store the icons into the Items.Objects property. If you
have
>the VCL source, look at how TDriveCombobox does this, your component would
be
>very similar.

>Peter Below (TeamB)  100113.1...@compuserve.com)
>No e-mail responses, please, unless explicitely requested!

Other Threads