One click should be one-click and double-click should be two clicks. Makes sense right But what when someone keeps clicking? I have 2 patterns. In both cases, a button and a timer control are used. Labels are used in the demo (video) for visual feedback. The patterns are:
A fixed time to click.
The timer is reset after each click.
The screen has 2 buttons. One for the clicks and one to acknowledge a message. This button is only shown after the time set has passed. The click button is disabled after the time has passed.
The click button has the following code in the property "OnSelect":
The property "Start" of the timer control contains the variable "var_TimerStart".
The property "Duration" of the timer control contains the variable "var_Duration". This value is set at the property "OnVisble" of the screen and set to "400". I found this value to be the most intuitive but please do test what you like.
The property "OnTimerEnd" of the timer control has the following code: