Thank you for your reply.
Yes, I am quite far along in the project already with PDFViewCtrl. If we decide to revamp the project for version 2, we'll definitely go with PDFViewWPF. But if you have a sample of how to integrate PDFViewWPF into a WinForms project, I will gladly try it out.
There is a GetAnnotationAt in PDFViewCtrl that takes a set of coordinates. I tried all combinations I could think of to get this to return a valid annotation while clicking on a valid and existing annotation, but nothing worked. I tried:
- mouse coordinates from the OnMouseUp event
- using PointToClient
- using PointToScreen
- various combinations of PointToClient and OnMouseUp coordinates
- various combinations of PointToScreen and OnMouseUp coordinates.
I finally had to go with the solution found here
but I would like to use the built-in method if possible.
I still haven't found a way to open a popup from code. After assigning the popup's parent to an annotation and the annotation's popup to the created popup, I have tried:
- popup.SetFlag(Annot.Flag.e_hidden, false)
- popup.SetFlag(Annot.Flag.e_invisible, false)
... but nothing has worked. Again, I would like to open the popup when clicking an option on my custom context menu.