VintaSoft Imaging .NET SDK and Plug-ins Discussions

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

Board index < VintaSoft Imaging < VintaSoft Imaging .NET SDK and Plug-ins Discussions

We are migrating to new forums engine, no new registration or posting currently available. TIA for your patience.

scroll using keyboard keys



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


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


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


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


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


Page 1 from 1: 1