can function catch coordinates for mouse

J

Jesper F

I need to run the same function in many controls' MouseDown, MouseMove and
MouseUp events.
I'm trying to write functions fMouseDown, fMouseMove and fMouseUp for this
and just write ex. "=fMouseMove" in the controls' property sheets instead of
inserting the code in event procedures for alle the controls.

However, the functions require the values for the X and Y coordinates that
are returned by these events. And since I'm trying to write functions x and
y aren't available?
Is there a way to get the mouse coordinates without creating for code for
each event procedure for all the controls?
Thanks for any input.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top