Set the CheckBox.Checked without the OnClick being called
- From: Fons <fonzzzNO@xxxxxxxxxxxxxxxxxxx>
- Date: Fri, 08 Jun 2007 00:30:38 +0200
Is there another way to set the CheckBox.Checked without the OnClick being called than:
procedure TForm.SetCheckBox(A : boolean);
var SaveOnClick : TNotifyEvent;
begin
SaveOnClick := CheckBox.OnClick;
CheckBox.OnClick := nil;
CheckBox.Checked := A;
CheckBox.OnClick := SaveOnClick;
end;
Maybe in one instruction ? Ok: I can make one procedure for the TCheckBox, one for the TEdit etc.
So I want the OnClick only when then user clicks.
Thanks,
Fons.
.
- Follow-Ups:
- Re: Set the CheckBox.Checked without the OnClick being called
- From: John Dough
- Re: Set the CheckBox.Checked without the OnClick being called
- Prev by Date: Re: choisir un répertoire
- Next by Date: Re: ShowForm ?
- Previous by thread: ShowForm ?
- Next by thread: Re: Set the CheckBox.Checked without the OnClick being called
- Index(es):