Announcement

Collapse
No announcement yet.

Processing the TAB key

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

  • Guest's Avatar
    Guest replied
    Thanks Patrice! it works great!

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

    Leave a comment:


  • Patrice Terrier
    replied
    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>

    Leave a comment:


  • Guest's Avatar
    Guest started a topic Processing the TAB key

    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!
Working...
X