RFC: VCL dropdown with checkboxes?
RFC: VCL dropdown with checkboxes?
What is your favorite way of doing a dropdown with multiple checkboxes (3-15 items)? Must be able to check/uncheck multiple items without closing/reopening. Custom text when closed up would be nice too. Off-the shelf component suggestions also welcome.
What is your favorite way of doing a dropdown with multiple checkboxes (3-15 items)? Must be able to check/uncheck multiple items without closing/reopening. Custom text when closed up would be nice too. Off-the shelf component suggestions also welcome.
Favorite way:
ReplyDelete• F6
• TcxCheckComboBox
• Enter
The same as Martin Wienold TcxCheckComboBox
ReplyDeleteCan anyone give an example where that's a good UI? What do you display when the control is not dropped?
ReplyDeleteDavid Heffernan The TcxCheckComboBox displays the items as a semi-colon separated list by default IIRC.
ReplyDeleteI've not used anything other than TcxCheckComboBox, primarily because we got DevExpress and so we use their components due to the layout thingy.
ReplyDeleteDavid Heffernan Here's how I used it at work (text is in Norwegian but shouldn't matter): https://www.dropbox.com/s/23ypaa9695924c1/CheckComboBox.png?dl=0
ReplyDeleteThis also shows how it displays the items when not dropped down.
And Lars Fosdal, I just tested and it allows you to use arrow keys and space to select multiple items without closing.
David Heffernan for a list with let's say 4 elements:
ReplyDelete"All"/"None" or "n of 4"
"Item1; Item3"
a bit table, hex value, or similar
are possible options. It depends on how much space you have and what kind of content the check list has.
OK, that makes more sense.
ReplyDeleteI think we use one when filtering a GridView, there are 4 kind of elements (example: error, warning, info, debug) and all are displayed by default. If one only wants to view kind 1 and 3, this is our solution.
ReplyDeleteTo be fair, this is some kind of edge case and most of the time one wants to view all entries.
http://delphihtmlcomponents.com/checkcombo.png
ReplyDelete