Get mouse click coordinates


John Clarke
As I understand it if I want to know the X and Y coordinates of where I clicked my mouse on an object (e.g a view) I would use . This doesn't seem to work any more.

DecSoft

Hello John,

You can use (in the view MouseUp event, for example) the "views" and "event" variables (case sensitive, so not "Event") like this: "views.view1.event.clientY". Or also use the "view" variable, like this: "view.event.clientY". Or even use the "event" variable only, like this: "event.clientY".


Everybody can read the DecSoft support forum for learning purposes, however only DecSoft customers can post new threads. Purchase one or more licenses of some DecSoft products in order to give this and other benefits.

This website uses some useful cookies to store your preferences.

I agree. Hide this note. Give me more information.