logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
slat  
#1 Posted : Thursday, December 15, 2016 12:06:44 AM(UTC)
slat

Rank: Newbie

Groups: Registered
Joined: 12/14/2016(UTC)
Posts: 3
New Zealand

The cursor doesn't stick when setting to a custom value when MouseMode is set to None.
ie. pdfViewer1.Cursor = Cursors.Cross;
Setting the Cursor on the pdfViewer Paint event doesn't help much either.
The Cursor seems to be being reset some where in the Pdfium.NET library.
Is there a way to override and persist the value?
I am experimenting with drawing GDI objects over the surface of the PDF and not having cursor control is an annoyance.

Cheers
slat  
#2 Posted : Tuesday, April 18, 2017 5:21:41 AM(UTC)
slat

Rank: Newbie

Groups: Registered
Joined: 12/14/2016(UTC)
Posts: 3
New Zealand

Solved this problem by editing PdfViewer.cs here:
https://github.com/Patagames/Pdf.WinForms/blob/master/PdfViewer.cs#L1875
Code:

if (Document != null && MouseMode != MouseModes.None)

Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.