In Delphi XE2, how can I detect if the user clicked a popup menu item with the left or with the right mouse button?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use this unit, install it as a component and replace the standard
TPopupMenuwhich adds anOnMenuRightClickevent.You can then use the
OnMenuRightClickevent to perform some action on a right click!Note: I didn’t make this unit – I don’t know who did but credit goes to whoever did… I have however just tested it in Delphi XE2 and it works fine.