[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
long pressing on button  XML
Forum Index -> Development
Author Message
wwillemsens

Power User

Joined: 14/11/2016 18:05:48
Messages: 32
Offline

With a tablet or smartphone long pressing on a button sometimes trigger an event (an emulation of a right click).
Can we do this also in captain casa?
So click on a button ==> action 1
Long click on same button ==> action 2


Kind regards
Wim
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5521
Offline

Hi Wim,

yes, good idea - we can add some info to the Invoke-event on this.
I am not 100% sure if this makes it into the next update, but the second-next (in 1,5 weeks) should contain it...

Thanks + Regards! Björn

Björn Müller, CaptainCasa GmbH
wwillemsens

Power User

Joined: 14/11/2016 18:05:48
Messages: 32
Offline

Thanx!!
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5521
Offline

Solution is part of 20190218, please check the change log. - Björn

Björn Müller, CaptainCasa GmbH
wwillemsens

Power User

Joined: 14/11/2016 18:05:48
Messages: 32
Offline

Hi Bjorn, this seems to work, but it can be improved I think

Now the action is only triggered when the button is released. It would be nice when an action is triggered after a period x when the button is pressed.
Now the user doesn't now if he pushed the button long enough.

Kind regards
Wim
wwillemsens

Power User

Joined: 14/11/2016 18:05:48
Messages: 32
Offline

Maybe, it is also a good idea to add buttonDown, buttonPressed, buttonUp?
Kind regards
Wim
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team