Re: Event question



Chris Ellec <cellec@elecsysinc.com> writes:
> Hello,
> 
> I am trying to do the following:
> 
> 
> on button1_clicked ( ....)
> {
> 
> while (button2_not_pressed)
>     {
>     do something
>     }
> 
> }
> 
> 
> on button2_clicked (...)
> {
> button2_not_pressed = false
> }
> 

Add an idle function that does do_something() when the user clicks
button 1, and remove it when they click button 2.

Havoc




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]