PDFNet: How to disable sticky annotations

164 views Asked by At

When the mouse hovers over an annotation that is not flattened, its icon changes from an arrow to a hand icon.

Since i use a custom cursor for the mouse, i don't want this to happen. I believe this functionality is provided to let the user know he/she can add a sticky annotation to another annotation.

Is there a way to block this functionality?

1

There are 1 answers

2
Ryan On

PDFViewCtrl class overrides the OnCursorChanged method. You can subcless PDFViewCtrl, and not call the base class on this call.

For example of overriding the behavior please take a look at the PDFViewTest sample, in particular the OnMouseDown override in MyPDFView.cs file. This is working fine.