[lazarus] Get button state

Sebastian Kraft sebastian_kraft at gmx.de
Tue Dec 16 08:52:31 EST 2003


Hi all,

I have a window with 2 buttons. One Start and one Stop. When clicking on start 
the program begins to write some lines to the commandline. How can I find out 
when the button stop is pressed? Seems the event isn't handled when the 
Program is still hanging in the start-button event...

Should look kind of that...

procedure TTestwin.startClicked(Sender: TObject);
begin
 repeat writeln('xxx') until "button stop pressed";
end;

But I've no idea who to build that in Pascal code...

Can anyone help?

Sebastian






More information about the Lazarus mailing list