scroll using keyboard keys

Questions, comments and suggestions concerning VintaSoft Imaging .NET SDK.

Moderator: Alex

Post Reply
pawanpatel
Posts: 14
Joined: Thu Jan 31, 2013 2:19 pm

scroll using keyboard keys

Post by pawanpatel » Wed Apr 30, 2014 12:33 pm

Hello,

I need to scroll the winforms main viewer up, down, left, right using keyboard. How this can be done? is there any property to activate this or need to do custom programming using any keyup or keypress events?

Thanks,
Pawan

Alex
Site Admin
Posts: 1474
Joined: Thu Jul 10, 2008 2:21 pm

Re: scroll using keyboard keys

Post by Alex » Thu May 01, 2014 1:30 pm

Hello Pawan,

By default the ImageViewer class does not allow to scroll an image using keyboard but you can extend functionality of image viewer.

First way, create a custom visual tool and use visual tool in image viewer. This is the best way.

The second way, create new class inherited from ImageViewer and override the behavior of class.

Best regards, Alexander

pawanpatel
Posts: 14
Joined: Thu Jan 31, 2013 2:19 pm

Re: scroll using keyboard keys

Post by pawanpatel » Mon May 05, 2014 12:16 pm

Hello,

Yes, I have added custom code in the KeyUP event handler and it is working fine!

Thanks,
Pawan

vasant
Posts: 1
Joined: Thu Jul 14, 2016 8:43 pm

Re: scroll using keyboard keys

Post by vasant » Thu Jul 14, 2016 8:52 pm

I need code sample for scrolling a page in imageviewer using key board arrow keys and mouse keys can I get code sample ?? please provide me

Alex
Site Admin
Posts: 1474
Joined: Thu Jul 10, 2008 2:21 pm

Re: scroll using keyboard keys

Post by Alex » Fri Jul 15, 2016 9:25 am

Hello,

SDK contains source codes of the ScrollPage class - the visual tool that allows to scroll the pages in the image viewer.
Source codes can be found here: [SdkInstallDirectory]\Examples\CSharp\ImagingDemosCommonCode\DemosCommonCode.Imaging\VisualTools\ScrollPages.cs

You can test the ScrollPages class in Imaging Demo:
  • Run Image Demo
  • Open multipage TIFF or PDF file
  • Select the Scroll Pages visual tool in toolbar
  • Scroll pages using mouse wheel
Best regards, Alexander

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest