J
Jamey Bon
Here is what I am trying to do:
A button's click event contains some code that does some stuff and takes
about 3-4 seconds to complete. I want to be able to interrupt that code
(and branch to some different code) with a subsequent click of that same
button. As far as I can tell, a new click event (or any other UI event,
for that matter) cannot happen until the current click event code as
completed.
I am just starting to learn about coding my own events and handlers, but
it doesn't seem like any event will fire while the button click event is
working. So I need some mechanism for interrupting the code of the click
event when the button is pressed again.
I would greatly appreciate any help in getting pointed in the right
direction for approaching this problem.
Thank you,
JB
A button's click event contains some code that does some stuff and takes
about 3-4 seconds to complete. I want to be able to interrupt that code
(and branch to some different code) with a subsequent click of that same
button. As far as I can tell, a new click event (or any other UI event,
for that matter) cannot happen until the current click event code as
completed.
I am just starting to learn about coding my own events and handlers, but
it doesn't seem like any event will fire while the button click event is
working. So I need some mechanism for interrupting the code of the click
event when the button is pressed again.
I would greatly appreciate any help in getting pointed in the right
direction for approaching this problem.
Thank you,
JB