Can MOUSE_EVENT API call tell me which mouse button is pressed?

B

Bill Mitchell

Hi,

I know that this API call can automatically create mouseclicks for me, but,
can it tell me which mouse button has already been physically clicked?

I am trying to get another way of determining the status of mouse buttons
rather than grabbing the "Button" argument from MouseDown Event. Reason I
wish to do this is so I can put more functions that depend on which mouse
button is clicked on the property sheet rather than in code. The property
sheet doesn't pass the "Button" argument, so I need the API Call that does :)

If MOUSE_EVENT is the one, how could I use it in code to test for which
mouse button is clicked?

Right now I'm passing the "Button" argument from MouseDown like so:

Public Function myMouseyThing(vButton) 'Button argument from Mousedown...

If vButton = acLeftButton then
do this stuff...
end if

Now I wish to do the same thing, but with API passing the "Button" value
rather than MouseDown.

Thanks!

Mitchell
 
Top