Page 1 of 1

scroll using keyboard keys

Posted: Wed Apr 30, 2014 12:33 pm
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

Re: scroll using keyboard keys

Posted: Thu May 01, 2014 1:30 pm
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

Re: scroll using keyboard keys

Posted: Mon May 05, 2014 12:16 pm
by pawanpatel
Hello,

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

Thanks,
Pawan

Re: scroll using keyboard keys

Posted: Thu Jul 14, 2016 8:52 pm
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

Re: scroll using keyboard keys

Posted: Fri Jul 15, 2016 9:25 am
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