Panel Touch Event

splatt

Active Member
Licensed User
Longtime User
In the documentation, the Panel is shown as having a touch event.

In the Designer Window when I Create Members, my panels only show Click and LongClick.

Does this mean that the Panel_Touch event is not available?

I tried adding it manually,

Sub pnlBoard_Touch(Action AsInt, tx AsFloat, ty AsFloat)
Msgbox("x = " & tx & " y = " & ty, "Coords")
Log("x = " & tx & " y = " & ty)
End Sub

but it does not seem to be triggered.

BTW, what is the difference between Touch & Click events?
 
It works for me !
What version of the Core library do you use ?
The latest version is 1.11.
The difference between Click and Touch
- Click is fired when the user clicks onto a View
- Touch is fired when the user touches a View and with the Action parameter you can check with:
0=ACTION_DOWN if the user just touched the View
2=ACTION_MOVE if the user is still touching the View and moves the finger
1=ACTION_UP the user just released the touching the View

If there is a Touch event routine, Click and LongClick aren't fired.

Attached a small test program to play with.

Best regards.
 

Attachments

Upvote 0
Thanks for that Klaus.

I'm only using the Trial version at the moment, as I am waiting to get an Android phone. According to the Core.XML I've only got version 1 installed.

I'll just have to wait!!!
 
Upvote 0
Erel,

Thanks for that.

I've taken the plunge and purchased the Enterprise version, so waiting for my new phone to arrive and start in ernest!

:sign0060:
 
Upvote 0
Back
Top