Shortcut to rotate image

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

Moderator: Alex

Post Reply
mange71
Posts: 6
Joined: Thu Aug 04, 2011 3:02 pm

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
Alex
Site Admin
Posts: 2305
Joined: Thu Jul 10, 2008 2:21 pm

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
Post Reply