12-06-2011 08:32 AM
My current setup would require that I cancel all events after 1 event is fire. If I could select wich event I would like to cancel, it would be better but I can live with all events cancelled.
Thank you,
Simon-Pierre
12-06-2011 08:58 AM - edited 12-06-2011 08:58 AM
edited
12-06-2011 09:57 AM
@coolaid wrote:
My current setup would require that I cancel all events after 1 event is fire. If I could select wich event I would like to cancel, it would be better but I can live with all events cancelled.
Thank you,
Simon-Pierre
If you want to prevent certain/all events from occuring after the first event you can disable the controls. This will prevent the event from occuring. Any controls not directly tied to the event structure do not need to be disabled, only the ones you that you have event cases for. If the control is disabled no event will be triggered. Other than maintaining some type of state information within the loop containing the event structure along with programmatic filtering of the event (simple case statement which prevent code within an event case from running) there is not way to simply clear the event queue.
12-06-2011 12:11 PM
Ok then, I will disable the button while I'm executing the event and release it afterward.
thank you all for your answers.
Simon-Pierre