Post by Jason CiprianiHow do I make a TCheckListBox read-only, so the user can't change the
check states?
TCheckListBox does not natively support that. What you can do, however, is
use the OnClickCheck event to manually reset an item's check state back to
its previous state when clicked, ie:
void __fastcall TForm1::CheckListBox1ClickCheck(TObject *Sender)
{
int idx = CheckListBox1->ItemIndex;
if( idx > -1 )
CheckListBox1->Checked[idx] = !CheckListBox1->Checked[idx];
}
Gambit