Announcement

Collapse
No announcement yet.

Processing the TAB key

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Processing the TAB key

    Hello Everyone,

    I need some advice on WM_KEYUP/DOWN. I can process the TAB key by itself but I also want to know if the SHIFT key has been pressed. I have tried looking into WM_CHAR and WM_KEYUP/DOWN and they dont seem to have any flags that indicate the SHIFT key status. Just so everyone knows what this is about, its for a grid control I'm making. I wanted to mimic the keyboard control that Excell uses. Any helpfull hints would be greatly appreciated!

    ------------------
    Cheers!

  • #2
    Mark,

    Look at GetKeyState below.

    Code:
        CASE %WM_KEYDOWN 
    
             SELECT CASE wParam& 
    
             CASE %VK_TAB 
    
                  IF (GetKeyState(%VK_SHIFT) AND &h8000) THEN kShift& = %TRUE
    ------------------
    Patrice Terrier
    mailto[email protected][email protected]</A>
    Patrice Terrier
    www.zapsolution.com
    www.objreader.com
    Addons: GDImage.DLL 32/64-bit (Graphic library), WinLIFT.DLL 32/64-bit (Skin Engine).

    Comment


    • #3
      Thanks Patrice! it works great!

      ------------------
      Cheers!

      Comment

      Working...
      X