Reputation: 579
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
Reputation: 96
We have used the following components in our different projects:
Freeware:
TjvCheckedComboBox
from JEDI VCLTCheckedComboBox
by Tsourinakis AntonisCommercial:
TcxCheckComboBox
from DevExpressUpvotes: 6
Reputation: 16065
You can write your own component
You can simulate the checkboxes using stock TComboBox in OwnerDraw mode and drawing both item titles and checkboxes by your custom routine
You can simulate the checkboxes using stock TComboBox using UNICODE symbols for checkboxes: http://en.wikipedia.org/wiki/Checkbox#Unicode
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
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