Right Click Buttons with RequestFile Error

BlitzMax Forums/BlitzMax Beginners Area/Right Click Buttons with RequestFile Error

xmlspy(Posted 2010) [#1]
Recently I added sensitivity to some buttons for right button clicks. My problem is that for some reason when you pair it with RequestFile it seems like the event is repeated again and again, and again. Try it out.



If you remove the RequestFile function then there's no issues. If you can't emulate the problem try switching to another program and then right click on the button directly instead of the window. Anyone know a fix for this?

Is there a way to maybe flush all of the events after a RequestFile? I'm new to BlitzMax so I'm not familiar with many things. Thanks.

Other details:
Win 7 Home Premium
BlitzMax 1.41 and MaxGui 1.41


xmlspy(Posted 2010) [#2]
There are lots of events when you do right clicks. So, what needs to be done is to have a method that will allow one click per button to happen even if there's tons of events.

Solution: