application.GetMouseClickPosition

Discuss all feature requests you have for a new Servoy versions here. Make sure to be clear about what you want, provide an example and indicate how important the feature is for you

application.GetMouseClickPosition

Postby idoctor » Sat Jul 31, 2004 7:50 am

I need to know the exact posiiton of where a user clicks on the screen. The only way I know how to do this is to put a bunch of buttons on a form and when a user clicks on it captures the coordinates of the button. The problem is resolution. If you put enough buttons on the screen to get good resolution the redraws become very slow. It would be really nice to have the application return the position of a mouse click relative to the borders of a form.


John McCann
idoctor
 
Posts: 254
Joined: Sun Sep 28, 2003 6:37 pm

Postby Jan Blok » Wed Aug 04, 2004 12:36 pm

Where whould the position be usefull for?, I can imagine you want the position within an image, but within the form I do not understand.
Jan Blok
Servoy
Jan Blok
 
Posts: 2684
Joined: Mon Jun 23, 2003 11:15 am
Location: Amsterdam

Postby idoctor » Fri Aug 06, 2004 6:08 pm

I want the x-y coordinates so I can place a label at the coordinates.

John McCann
idoctor
 
Posts: 254
Joined: Sun Sep 28, 2003 6:37 pm

Re: application.GetMouseClickPosition

Postby maria » Tue Dec 29, 2009 1:23 am

I would like to have this method, too, because I need to show a popup menu on a label in tableview.
In tableview without records I can't find the coordinates of the label on which the user clicked because there is no field and no label if there's no records (viewtopic.php?f=2&t=13446).

Any chance of having this functionality or any other way around the problem?

Cheers,
Maria
maria
 
Posts: 424
Joined: Thu Apr 16, 2009 1:18 am
Location: Sydney

Re: application.GetMouseClickPosition

Postby jcompagner » Tue Dec 29, 2009 6:52 pm

what event is generated where you want to ask that mouse position?
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8828
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: application.GetMouseClickPosition

Postby maria » Wed Dec 30, 2009 3:04 am

jcompagner wrote:what event is generated where you want to ask that mouse position?


That would be onRightClick but I reckon after the labelFor labels in the tableview header are fixed, the necessity of this one will decrease for me.
maria
 
Posts: 424
Joined: Thu Apr 16, 2009 1:18 am
Location: Sydney

Re: application.GetMouseClickPosition

Postby jcompagner » Wed Dec 30, 2009 10:23 am

And all the click events should give you the mouse x,y position in the JSEvent object.
If that is not the case for certain events please make a case for that.
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8828
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: application.GetMouseClickPosition

Postby maria » Thu Dec 31, 2009 1:14 am

jcompagner wrote:And all the click events should give you the mouse x,y position in the JSEvent object.
If that is not the case for certain events please make a case for that.


Haven't checked that yet.
Thanks for suggestion.
maria
 
Posts: 424
Joined: Thu Apr 16, 2009 1:18 am
Location: Sydney


Return to Discuss Feature Requests

Who is online

Users browsing this forum: No registered users and 7 guests