Mouse click on object
in
Programming Questions
•
1 years ago
I would like to know if it is possible to associate a mouse click event with an object (because it was clicked over it).
I do not mean use the window coords and calculate whether it was over the object, so, I would presume that the coding for the mouse would have to be part of the object's class code.
The end result would therefore be that the mouse coords returned would naturally be relative to the object, without any calculations.
Perhaps?? I could have made that simpler by asking whether object's can have mouse events as well as properties and methods.
Thanks in advance
1