techknight Well-Known Member Licensed User Longtime User Jan 16, 2019 #1 Is there a way to get a Button Down, and Up event like android? I need something so while I am pressing a button, the app is performing a function, but stops as soon as I release it. Works in android, but not sure how to do this in iOS?
Is there a way to get a Button Down, and Up event like android? I need something so while I am pressing a button, the app is performing a function, but stops as soon as I release it. Works in android, but not sure how to do this in iOS?
techknight Well-Known Member Licensed User Longtime User Jan 16, 2019 #2 Actually just bumped into SwiftButton for XUI, Maybe I can make that work with some code mods? Upvote 0
S sorex Expert Licensed User Longtime User Jan 16, 2019 #3 can't you use the touch method? it has press, move, release of which you can use press & release for you down and up events Edit: sorry, I just saw 'button'... I tend to create my own 'buttons' by just using labels or images. Upvote 0
can't you use the touch method? it has press, move, release of which you can use press & release for you down and up events Edit: sorry, I just saw 'button'... I tend to create my own 'buttons' by just using labels or images.
klaus Expert Licensed User Longtime User Jan 16, 2019 #4 I use often Panels / Panes also for button functions. Then, using the Xui library you are even cross platform. Upvote 0
I use often Panels / Panes also for button functions. Then, using the Xui library you are even cross platform.
techknight Well-Known Member Licensed User Longtime User Jan 16, 2019 #5 Darn. SwiftButton isnt going to work because the compiler is complaining that it is declared twice! so it must be bundled in some other library. This is preventing me from modifying the class to suit what I need. And Swiftbutton isnt showing up in the designer customview either. Upvote 0
Darn. SwiftButton isnt going to work because the compiler is complaining that it is declared twice! so it must be bundled in some other library. This is preventing me from modifying the class to suit what I need. And Swiftbutton isnt showing up in the designer customview either.
techknight Well-Known Member Licensed User Longtime User Jan 16, 2019 #6 Nevermind I found it. it was in XUI Views. I just removed it out of that library. I could just simply copy it in but eh. I modified the code a tiny bit to include an Up event. Nothing major. Working fine for me. Upvote 0
Nevermind I found it. it was in XUI Views. I just removed it out of that library. I could just simply copy it in but eh. I modified the code a tiny bit to include an Up event. Nothing major. Working fine for me.