Hello guys,
how can I suppress right clicking on a document?
Or how is it possible to suppress the shown context menu when right clicking on the document?
We are using the ActiveX element.
We tried with DenyAllContextMenus, but it didn´t work.
Maybe someone can help us.
Thanks!
Avoid right clicking on a document
Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan
- Tracker Supp-Stefan
- Site Admin
- Posts: 17906
- Joined: Mon Jan 12, 2009 8:07 am
- Location: London
- Contact:
Re: Avoid right clicking on a document
Hello afischer,
You can listen for mouse events, and when the right click is over the rendering area - just skip it:
https://help.pdf-xchange.com/DEV/de ... xactphrase
Regards,
Stefan
You can listen for mouse events, and when the right click is over the rendering area - just skip it:
https://help.pdf-xchange.com/DEV/de ... xactphrase
Regards,
Stefan
Re: Avoid right clicking on a document
Hello Stefan,
thank you for your answer. I expressed myself indistinctly.
I dont want to avoid the Mouseclick itself. I want to avoid the Context Menu which is shown.
We are using a Touch Panel. When you tap and hold on the document, it simulates a right click.
And i guess it is not a mouse event.
Do you understand what i mean?
Thanks in advance!
thank you for your answer. I expressed myself indistinctly.
I dont want to avoid the Mouseclick itself. I want to avoid the Context Menu which is shown.
We are using a Touch Panel. When you tap and hold on the document, it simulates a right click.
And i guess it is not a mouse event.
Do you understand what i mean?
Thanks in advance!
- Tracker Supp-Stefan
- Site Admin
- Posts: 17906
- Joined: Mon Jan 12, 2009 8:07 am
- Location: London
- Contact:
Re: Avoid right clicking on a document
Hello afischer,
I think I understood you correctly - maybe my reply was not 100% clear. Apologies for that!
The "skip" I refer to will make the Viewer ignore the right mouse click, so the event itself is there, and the user is not preventing from holding down on the screen. Just instead of showing the context menu, the Viewer will do nothing.
You can of course listen only for specific events (e.g. WM_RBUTTONDOWN) - detect over which part of the Viewer control this occurred, and then decide whether to allow the Viewer to process that normally (e.g. if it's a right click over a toolbar), or ignore it if it's over the main document area, and if you want - you can then implement some of your own custom logic and do other tasks when such a right click occurs.
Please check the code sample on the page I linked - hopefully it will clarify what happens when you handle the mouse events in the Viewer.
Regards,
Stefan
I think I understood you correctly - maybe my reply was not 100% clear. Apologies for that!
The "skip" I refer to will make the Viewer ignore the right mouse click, so the event itself is there, and the user is not preventing from holding down on the screen. Just instead of showing the context menu, the Viewer will do nothing.
You can of course listen only for specific events (e.g. WM_RBUTTONDOWN) - detect over which part of the Viewer control this occurred, and then decide whether to allow the Viewer to process that normally (e.g. if it's a right click over a toolbar), or ignore it if it's over the main document area, and if you want - you can then implement some of your own custom logic and do other tasks when such a right click occurs.
Please check the code sample on the page I linked - hopefully it will clarify what happens when you handle the mouse events in the Viewer.
Regards,
Stefan