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
scroll using keyboard keys
Moderator: Alex
Re: scroll using keyboard keys
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
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
-
- Posts: 14
- Joined: Thu Jan 31, 2013 2:19 pm
Re: scroll using keyboard keys
Hello,
Yes, I have added custom code in the KeyUP event handler and it is working fine!
Thanks,
Pawan
Yes, I have added custom code in the KeyUP event handler and it is working fine!
Thanks,
Pawan
Re: scroll using keyboard keys
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
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:
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