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

Discussions about document viewing.
Post Reply
junwei1994
Posts: 9
Joined: Wed May 15, 2019 10:04 am

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

Post by junwei1994 » Wed May 15, 2019 10:08 am

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

junwei1994
Posts: 9
Joined: Wed May 15, 2019 10:04 am

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

Post by junwei1994 » Thu May 16, 2019 4:07 am

Help please?

Best Regards,
Jun Wei

Gabriela
Posts: 422
Joined: Wed Nov 22, 2017 9:52 am

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

Post by Gabriela » Fri May 17, 2019 10:52 am

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.
Kind regards,

Gabriela
GdPicture Team

junwei1994
Posts: 9
Joined: Wed May 15, 2019 10:04 am

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

Post by junwei1994 » Thu May 23, 2019 4:26 am

Hi Gabriela,

Noted with thanks.

Best Regards,
Jun Wei

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests