TonyDelphiHunt
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.
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.
..but you can do it also with bitmaps in first column of TListView
ziolko.
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
Just turn on the property "AllowGrayed"
This then gives you "Checked", "Unchecked" and "Grayed" for unknown
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
But this can be done with AdvStringGrid from the same developers... and is a very very versatil component.
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..
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..
ziolko.