[Lazarus] controling a loop
Schindler Karl-Michael
karl-michael.schindler at web.de
Wed Aug 10 15:56:46 CEST 2016
Hi.
I want to control the execution of a loop with a checkbox. If the checkbox is checked the loop should run, if it is unchecked no action. I tried this with onClick:
CheckBox.Click(Sender:TObject);
begin
repeat
Some Action …
Form.Update;
until (CheckBox.State <> checked)
end;
The loop starts, but i cannot click the Checkbox again for switching off. How to do it? Is it possible without threads?
Michael.
More information about the Lazarus
mailing list