RightClick

Questions, tips and tricks and techniques for scripting in Servoy

RightClick

Postby Gordon » Wed Mar 16, 2011 1:01 pm

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
Gordon McLean
Click Digital Media Ltd
SAN Developer
www.clickdigital.com
User avatar
Gordon
 
Posts: 265
Joined: Thu Mar 17, 2005 8:05 pm
Location: UK

Re: RightClick

Postby Harjo » Wed Mar 16, 2011 3:29 pm

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

So I think you should file a feature request..

+1 btw....
Harjo Kompagnie
ServoyCamp
Servoy Certified Developer
Servoy Valued Professional
SAN Developer
Harjo
 
Posts: 4321
Joined: Fri Apr 25, 2003 11:42 pm
Location: DEN HAM OV, The Netherlands

Re: RightClick

Postby madimane » Wed Mar 16, 2011 4:41 pm

Hi,
+1 for that feature
Othmane himadi
Analyst / Developper
Freelancer
---------------------
Whether we want it or not, being a developer means documenting our code is a necessity
User avatar
madimane
 
Posts: 85
Joined: Tue Oct 13, 2009 5:16 am
Location: Montréal,QC,Canada

Re: RightClick

Postby ngervasi » Thu Mar 17, 2011 1:39 am

+1
Nicola Gervasi
sintpro.com
SAN Partner
ngervasi
 
Posts: 1485
Joined: Tue Dec 21, 2004 12:47 pm
Location: Arezzo, Italy

Re: RightClick

Postby bobcusick » Thu Mar 17, 2011 9:43 pm

+1
User avatar
bobcusick
 
Posts: 126
Joined: Mon Jan 12, 2009 9:13 pm

Re: RightClick

Postby Hans Nieuwenhuis » Fri Mar 18, 2011 8:56 am

+1
Hans Nieuwenhuis
Betagraphics
http://www.deltics.nl
http://www.betagraphics.nl

Servoy Version 7.3.1
Java version 1.7.0.x
Database Oracle 11g
User avatar
Hans Nieuwenhuis
 
Posts: 1026
Joined: Thu Apr 12, 2007 12:36 pm
Location: Hengelo, The Netherlands

Re: RightClick

Postby Roberto Blasco » Fri Mar 18, 2011 9:01 am

+1
Un saludo. Roberto.

Madrid - Spain
Tfno: (+34) 625653066
E-mail: roberto.blasco.serrano@gmail.com
User avatar
Roberto Blasco
007
 
Posts: 355
Joined: Tue Apr 08, 2008 7:18 pm
Location: Madrid / Spain

Re: RightClick

Postby antonio » Fri Mar 18, 2011 10:32 am

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.
Tony
Servoy 8 - 2022.03 LTS
antonio
 
Posts: 638
Joined: Sun Apr 02, 2006 2:14 am
Location: Australia

Re: RightClick

Postby Manolo_Etec » Fri Mar 18, 2011 6:58 pm

+1
Manuel López
Etec Programación SL
manuel@etecsoft.com
http://www.etecsoft.com
User avatar
Manolo_Etec
 
Posts: 66
Joined: Fri Sep 12, 2008 3:58 pm

Re: RightClick

Postby JuanMartin » Sat Mar 19, 2011 9:23 pm

+1
Juan Antonio Martín Pinilla
Servoy 2022.9.2 - PostgreSql 9.4
software@critenerife.com
User avatar
JuanMartin
 
Posts: 169
Joined: Tue Nov 25, 2008 9:20 pm
Location: Tenerife - Spain

Re: RightClick

Postby lvostinar » Tue Mar 22, 2011 11:46 am

did someone create a case for this?
Laurian Vostinar
Servoy
lvostinar
 
Posts: 1062
Joined: Tue Feb 19, 2008 10:53 am

Re: RightClick

Postby erikd » Wed Sep 28, 2011 6:50 am

Any update on this?
erikd
 
Posts: 445
Joined: Wed Aug 11, 2010 2:32 am

Re: RightClick

Postby jcarlos » Wed Sep 28, 2011 6:55 am

antonio wrote: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?
jcarlos
 
Posts: 578
Joined: Thu May 04, 2006 8:55 pm
Location: Palo Alto, California USA

Re: RightClick

Postby jcarlos » Wed Sep 28, 2011 6:57 am

Re: Gordon's idea

+1
jcarlos
 
Posts: 578
Joined: Thu May 04, 2006 8:55 pm
Location: Palo Alto, California USA

Re: RightClick

Postby ashutos » Wed Sep 28, 2011 9:02 am

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.
Thanks
Ashutos
ashutos
 
Posts: 72
Joined: Fri Apr 16, 2010 1:06 pm

Next

Return to Methods

Who is online

Users browsing this forum: No registered users and 7 guests