Thanks,
Simon
Use code similar to:
procedure TForm1.CBoxClick(Sender: TObject);
begin
PaintBox1.Invalidate;
end;
procedure TForm1.PaintBox1Paint(Sender: TObject);
begin
with PaintBox1.Canvas do
begin
if CBox.Checked then
Brush.Style := bsClear
else
begin
Brush.Color := clFuchsia;
Brush.Style := bsSolid;
end;
FillRect(ClientRect);
end;
end;
--
Regards
Ralph (TeamB)
(No private e-mail replies, please, unless explicitly requested).
--
Simon Hürlimann wrote in message <3666B3AA...@hotmail.com>...