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.

Shortcut to rotate image



Shortcut to rotate image

Post by mange71 »

I have a form with both a imageviewer and a thumbnailviewer, in the form i have buttons for rotate the image, connected to the button there is shortcuts (Ctrl+Left Arrow, Ctrl+Right Arrow). When i focus in the thumbnailviewer, i cant get the shortcuts to work... The only thing that happens is that the thumbnailviewer select the previous or the next thumbnail.

Is it possible to "connect" a shortcut "Ctrl + Left Arrow" or "Ctrl + Right Arrow" to rotate image in imageviewer even if the focus is on the thumbnailviewer wich seems to consume the arrows-keys to go to next or previous thumbnail, overriding the default behaviour of the arrow keys?

/Magnus


Re: Shortcut to rotate image

Post by Alex »

Hello Magnus,

Thumbnail viewer navigates thumbnails like Explorer.

You need do the following steps if you want to change the behavior of the thumbnail viewer:
  • Create a new class derived from the ThumbnailViewer class
  • Override the ProcessCmdKey method
  • Use new class instead of the ThumbnailViewer class
Best regards, Alexander


Page 1 from 1: 1