Frequently Asked Component Specific Questions

Options

Display all FAQ items

Search FAQ items:


Displaying items 1 to 1 of 1, page 1 of 1

<< previous next >>

THTMLCheckList
How to make the THTMLCheckList only let one check box marked at a time

You can easily have a radiobutton-like behavior in THTMLCheckList by adding the following event handler for OnCheckClick:

procedure TForm5.HTMLCheckList1CheckClick(Sender: TObject; Index: Integer); 
begin
  HTMLCheckList1.UnCheckAll;
  HTMLCheckList1.Checked[Index] := true; 
end;