Marco Maria Vilucchi Active Member Licensed User Longtime User Jun 10, 2019 #1 Hi all, I need to manage a button that, for example, shows an image while it's pressed and hides it when it's released. I thought of using a panel and the touch event, but I don't know how to intercept the moment when the finger is removed. Can someone help me? Thanks Marcom
Hi all, I need to manage a button that, for example, shows an image while it's pressed and hides it when it's released. I thought of using a panel and the touch event, but I don't know how to intercept the moment when the finger is removed. Can someone help me? Thanks Marcom
S sorex Expert Licensed User Longtime User Jun 10, 2019 #2 you can check the values or their 'representatives' Code: Sub mypanel_Touch (Action As Int, X As Float, Y As Float) Select Action Case mypanel.ACTION_DOWN Case mypanel.ACTION_UP End Select End Sub Upvote 0
you can check the values or their 'representatives' Code: Sub mypanel_Touch (Action As Int, X As Float, Y As Float) Select Action Case mypanel.ACTION_DOWN Case mypanel.ACTION_UP End Select End Sub
Marco Maria Vilucchi Active Member Licensed User Longtime User Jun 10, 2019 #3 it means that when I touch panel I have case Action_Down and when release I have Action_UP? So simple? Upvote 0
it means that when I touch panel I have case Action_Down and when release I have Action_UP? So simple?
S sorex Expert Licensed User Longtime User Jun 10, 2019 #4 yep, everything is simple when you know how it works Upvote 0