application.GetMouseClickPosition

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

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.

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

John McCann

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

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

jcompagner:
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.

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.

jcompagner:
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.