Board index » delphi » Changing Checkbox Disabled Color

Changing Checkbox Disabled Color

2nd try:

In a checkbox control how do I change the color used when setting Enabled :=
False?  I don't like the washed out look.

Alan

I Checked out TI3239 but it didn't work.

 

Re:Changing Checkbox Disabled Color


Alan,

as a workaround you can place the checkbox on a panel and then enable or
disable the panel.

procedure TForm1.Button3Click(Sender: TObject);
begin
  panel1.enabled := True;
  checkbox1.font.Color := clBlack;
end;

procedure TForm1.Button2Click(Sender: TObject);
begin
  panel1.enabled := False;
  checkbox1.font.Color := clBlue;
end;

The disabled appearance of the checkbox is determined by Windows and i see
no easy way to change that.

Peter Below (TeamB)  100113.1...@compuserve.com)

Other Threads