Hello Everyone!
I have a simple calculator using panels for the buttons. I am using Action_Down and Action_up to load Normal and pressed images. This all works fine.
My question is... In most apps when you press a button then slide your finger off to the side, the action is cancelled. In other words the Action_up event never fires. This is what I want to happen, but in B4A doing this with panels or even with buttons it does not work, you can slide your finger off the button and the Action_Up code runs as soon as you lift your finger. Am I missing something, or is there a specific code needed to get this behavior?
I have a simple calculator using panels for the buttons. I am using Action_Down and Action_up to load Normal and pressed images. This all works fine.
My question is... In most apps when you press a button then slide your finger off to the side, the action is cancelled. In other words the Action_up event never fires. This is what I want to happen, but in B4A doing this with panels or even with buttons it does not work, you can slide your finger off the button and the Action_Up code runs as soon as you lift your finger. Am I missing something, or is there a specific code needed to get this behavior?