R: wxButton OnButtonClick - how to ignore further clicks until
current has been processed?
Baldassarre Cesarano
baldassarre.cesarano at eunics.it
Tue Mar 11 09:18:09 PDT 2008
try this...
void MyFrame::OnButtons( wxIdleEvent& event ){
myButton->Enable( false );
....
myButton->Enable( true );
}
> -----Messaggio originale-----
> Da: Lars Uffmann [mailto:aral at nurfuerspam.de]
> Inviato: martedì 11 marzo 2008 16.53
> A: wx-users at lists.wxwidgets.org
> Oggetto: wxButton OnButtonClick - how to ignore further
> clicks until current has been processed?
>
>
> I've got this event handler for OnButtonClick - is there a
> simple property that I can set in the wx event handler or for
> the button that makes sure that more clicks _while_ the event
> handler is still running do not result in another execution
> of the event handler once the current thread of execution has
> finished? Or do I have to block that manually as first thing
> in the event handler?
>
> Any comments appreciated!
>
> Laras
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wx-users-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wx-users-help at lists.wxwidgets.org
>
>
More information about the wx-users
mailing list