Mouse key pressed

Hi Guys,

How do I determine which mouse key has been pressed? The left or the right key. I’m working with Xojo 2014R1.1 in a windows environment.

Thanks

[quote=95593:@A Himmit]Hi Guys,

How do I determine which mouse key has been pressed? The left or the right key. I’m working with Xojo 2014R1.1 in a windows environment.

Thanks[/quote]
In the mousedown event use IsContextualClick to detect if it is right mouse button.

http://documentation.xojo.com/index.php/IsContextualClick

Thanks Oliver,

That’s sufficient for now. You have been a great help.

[quote=96287:@A Himmit]Thanks Oliver,

That’s sufficient for now. You have been a great help.[/quote]
Thanks. ‘for now’, what is your problem with IsContextualClick? What would make it insufficient later?!?

Oliver,

IsContextualClick works fine and I have used it.

[quote=99870:@A Himmit]Oliver,

IsContextualClick works fine and I have used it.[/quote]
Don’t forget to mark your question as answered. Usually I would directly mark the answered question as answered, quote the answerer or write the answer if I answer the question myself and credit those who helped. If somebody comes back to your thread then they will see the answer right away.