• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 298
  • Last Modified:

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.
0
TonyDelphiHunt
Asked:
TonyDelphiHunt
1 Solution
 
ziolkoCommented:
commercial control.. I recommend DeveloperExpress

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

ziolko.
0
 
mikelittlewoodCommented:
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
0
[Webinar] Kill tickets & tabs using PowerShell

Are you tired of cycling through the same browser tabs everyday to close the same repetitive tickets? In this webinar JumpCloud will show how you can leverage RESTful APIs to build your own PowerShell modules to kill tickets & tabs using the PowerShell command Invoke-RestMethod.

 
spk2000arCommented:
Check http://www.tmssoftware.com/ for THTMLCheckList.
0
 
spk2000arCommented:
But this can be done with AdvStringGrid from the same developers... and is a very very versatil component.
0
 
TonyDelphiHuntAuthor Commented:
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..



0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now