Alistair,
Define a boolean form variable (FCheckBoxBusy or whatever), set it to false in
the FormCreate.  At the start of the "previous code" mentioned, set the boolean
to true and back to false at the end.  In the OnClick event, check the boolean
and if true just exit - so the code causing the loop is not executed.
Or something along those lines, depending on how the dependencies in your code
work.

Cheers
Pedrocelli

----- Original Message -----
From: "Alistair George" <[EMAIL PROTECTED]>
To: "Multiple recipients of list delphi" <[EMAIL PROTECTED]>
Sent: Tuesday, August 26, 2003 3:39 PM
Subject: [DUG]: Checklist box problem


Aghhh the previous code works fine if the caption is clicked - it changes the
state, but if the checkbox itself is clicked, it changes state, then due to the
onclick event, it is changed back!
Al+

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/

Reply via email to