Page 1 of 1

How to move the image freely by clicking left mouse button?

Posted: Wed May 15, 2019 10:08 am
by junwei1994
Dear all,

May I know how to move the image freely by clicking left mouse button?

So far it only allows to move up and down when clicking left mouse button.

GdViewer1.MouseMode = ViewerMouseMode.MouseModePan
GdViewer1.MouseWheelMode = ViewerMouseWheelMode.MouseWheelModeVerticalScroll
GdViewer1.MouseButtonForMouseMode = MouseButton.MouseButtonLeft

These are the only events available, there is no other events like GdViewer1.LeftMouseButtonBehavior.

Please help on this.

Best Regards,
Jun Wei

Re: How to move the image freely by clicking left mouse button?

Posted: Thu May 16, 2019 4:07 am
by junwei1994
Help please?

Best Regards,
Jun Wei

Re: How to move the image freely by clicking left mouse button?

Posted: Fri May 17, 2019 10:52 am
by Gabriela
Hi, Jun Wei,

Of course, you can move your image freely. Please try to use our Document Viewer sample in your installation directory (GdPicture.NET 14\Samples\Bin\Document Viewer.exe). If you zoom the document so it exceeds the viewing area and the horizontal scrollbar appears, you can move the document within the viewer with the left mouse click from left to right in the same way as from up to bottom. If there is no scrollbar, you cannot move the document. And by the way, the MouseMode, MouseWheelMode, and MouseButtonForMouseMode are properties, not events.
Let us know if it helps.

Re: How to move the image freely by clicking left mouse button?

Posted: Thu May 23, 2019 4:26 am
by junwei1994
Hi Gabriela,

Noted with thanks.

Best Regards,
Jun Wei