RightClick

Hi

I am looking to add some right click functionality to my app. I can see that if you have a form element ie a field you can use the onRightClick event, however is there a way to do this on the form as a whole ? I can see the JSEvent.RIGHTCLICK that can be attached to the onRightClick even but not see how this can be attached to the form as a whole rather than a specific form element. Any pointers would be much appreciated

Cheers
Gordon

There is no onRightClick property on form level, only on button/element level

So I think you should file a feature request…

+1 btw…

Hi,
+1 for that feature

+1

+1

+1

+1

What about creating a button the size of the form, add a right click event to it, put it behind all the other elements, turn showClick property off, transparent on.

+1

+1

did someone create a case for this?

Any update on this?

antonio:
What about creating a button the size of the form, add a right click event to it, put it behind all the other elements, turn showClick property off, transparent on.

Did you try it this? How did it work?

Re: Gordon’s idea

+1

Hi antonio,

Thanks for your solution. It is working fine :D . But suppose we have done the right click operation on the button which is of the size form . We have placed another element button on that . Then when we are going to the element button and clicking it for the first time it is not working . But then onwards when we are clicking the element button it is working fine.

Thanks in advance. Waiting for your feedback.

lvostinar:
did someone create a case for this?

I have created one now as I was not sure how previously. I still think it would be a great feature and enhanced Servoys functionality especially on the desktop

Gordon:

lvostinar:
did someone create a case for this?

I have created one now as I was not sure how previously. I still think it would be a great feature and enhanced Servoys functionality especially on the desktop

Maybe you can post the link so people can vote/watch the issue.

https://support.servoy.com/browse/SVY-946

Hope this is OK !