Alec
Alec

Reputation: 579

ComboBox with checkbox items

Please advise, I'm still very new to Delphi. I would like to have a ComboBox with checkbox items, what can I use or do? I'm using Delphi 2009.

Upvotes: 2

Views: 16297

Answers (2)

Anton R.
Anton R.

Reputation: 96

We have used the following components in our different projects:

Freeware:

Commercial:

  • TcxCheckComboBox from DevExpress

Upvotes: 6

Arioch 'The
Arioch 'The

Reputation: 16065

  1. You can write your own component

  2. You can simulate the checkboxes using stock TComboBox in OwnerDraw mode and drawing both item titles and checkboxes by your custom routine

  3. You can simulate the checkboxes using stock TComboBox using UNICODE symbols for checkboxes: http://en.wikipedia.org/wiki/Checkbox#Unicode

  4. You can avoid using TCombobox but instead put TCheckList over some kind of collapsible panel with caption. Those components together might provide user experience rather close to checked combobox

  5. You can take any of many ready-made components and libraries. For example

Combobox that shows a checkboxlist when expanded. Several options can be selected there, selected lines are shown as comma-separated-text in combobox. Access via properties "ItemEnabled[i]" and "Checked[i]"

PS. I used D2009 and that is an ultimately buggy Delphi version, both IDE and compiler and RTL. I seriously suggest you to either upgrade or downgrade.

PPS. You question is very very close to the "list the libraries" one, which is offtopic on StackOverflow: https://stackoverflow.com/help/dont-ask

Upvotes: 2

Related Questions