LWGShane Well-Known Member Licensed User Longtime User Mar 23, 2017 #1 I want to use both the DoubleClick() and Click() events in the SystemTray library at the same time. However, I've discovered that the DoubleClick() event in the SystemTray library also fires the Click() event. Is there anyway around this?
I want to use both the DoubleClick() and Click() events in the SystemTray library at the same time. However, I've discovered that the DoubleClick() event in the SystemTray library also fires the Click() event. Is there anyway around this?
Erel B4X founder Staff member Licensed User Longtime User Mar 24, 2017 #2 No. This is how the native object behaves.
Erel B4X founder Staff member Licensed User Longtime User Mar 24, 2017 #3 As a workaround you can use CallSubPlus to run a sub 100ms after the Click event. The logic will be implemented in that sub. If the DoubleClick event was raised then cancel it with: https://www.b4x.com/android/forum/threads/stopping-callsubplus.68105/#post-431591
As a workaround you can use CallSubPlus to run a sub 100ms after the Click event. The logic will be implemented in that sub. If the DoubleClick event was raised then cancel it with: https://www.b4x.com/android/forum/threads/stopping-callsubplus.68105/#post-431591
LWGShane Well-Known Member Licensed User Longtime User Mar 24, 2017 #4 @Erel - That works wonderfully! (Though I changed the time to 200ms. 100ms seems too fast.)