Project JEDI - Issue Tracker - JEDI VCL
Viewing Issue Advanced Details
4733 00 JVCL Components minor always 2009-04-06 16:12 2009-04-29 15:27
gpcaretti  
obones  
normal  
resolved 3.36  
fixed  
none    
none 3.37  
0004733: TJvDesignSurface: Ctrl-Left/Right/Up/Down and Shift-Left/Right/Up/Down on Windows
With D2007 the Ctrl-Left/Right/Up/Down and Shift-Left/Right/Up/Down do not work on the design panel (TJvDesignSurface) when is in active mode because the panel does not intercept the "Special Keys" during the WM_KEYDOWN (VK_LEFT, VK_RIGHT,
etc.).
In D2007 the message management loop calls the IsKeyMsg method. IsKeyMsg
does not pass on the original key message, but it adds an offset (CN_BASE) to
the message ID to turn the original Windows message into a VCL message.
So, WM_KEYDOWN becomes CN_KEYDOWN, WM_CHAR becomes CN_CHAR, and so on.

For this reason, in order to intercept the special keys the CN_KEYDOWN
and CN_KEYUP should be checked in the JvDesignSurface unit.

Please, find attached the proposed patch I added to the above unit officially released in JVCL 3.36 (look for GpCaretti)
? file icon JvDesignSurface.pas [^] (30,785 bytes) 2009-04-06 16:12
Issue History
2009-04-06 16:12 gpcaretti New Issue
2009-04-06 16:12 gpcaretti File Added: JvDesignSurface.pas
2009-04-06 16:12 gpcaretti Issue Monitored: gpcaretti
2009-04-29 15:27 obones Note Added: 0015477
2009-04-29 15:27 obones Status new => resolved
2009-04-29 15:27 obones Fixed in Version => Daily / SVN
2009-04-29 15:27 obones Resolution open => fixed
2009-04-29 15:27 obones Assigned To => obones
2009-04-29 15:37 gpcaretti Issue End Monitor: gpcaretti

Notes
(0015477)
obones   
2009-04-29 15:27   
Thanks, this is now in SVN.