Link to home
Start Free TrialLog in
Avatar of TonyDelphiHunt
TonyDelphiHuntFlag for Afghanistan

asked on

CheckListBox with 3 distinct states

I would like a checklist control which displays 3 distinct states. Yes, No, Unknown.

The box as a 'Tick' is obviously fine for the 'Yes' state. I would like the 'No' state to be displayed as an 'X' and
Ā 'Unknown' would be clear.

I have tried using the style lbOwnerDrawFixed but can see no way in the OnDrawItem event of drawing the
'Tick Box' differently.

A coded solution for this would be good but I am quite willing to consider a commercial product if you know of one.
Avatar of Lukasz Zielinski
Lukasz Zielinski
Flag of Poland image

commercial control.. I recommend DeveloperExpress

ziolko.
..but you can do it also with bitmaps in first column of TListView

ziolko.
You know you can already do this with the standard checklistbox.
Just turn on the property "AllowGrayed"
This then gives you "Checked", "Unchecked" and "Grayed" for unknown
ASKER CERTIFIED SOLUTION
Avatar of Martin Barreda
Martin Barreda
Flag of Argentina image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
But this can be done with AdvStringGrid from the same developers... and is a very very versatil component.
Avatar of TonyDelphiHunt

ASKER

Thank you all for your comments.

spk2000ar pointed me to EXACTLY the product I need.

The TRULY embarassing thing is we already have been using TMS for 3 years for one of their other excellent products and didn't realise we already had these things available in the same VCL..