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 »

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: 2303
Joined: Thu Jul 10, 2008 2:21 pm

Re: scroll using keyboard keys

Post by Alex »

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 »

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 »

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: 2303
Joined: Thu Jul 10, 2008 2:21 pm

Re: scroll using keyboard keys

Post by Alex »

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