PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Marc van Cauwenberghe on August 07, 2010, 01:39:31 PM

Title: SHIFT TAB
Post by: Marc van Cauwenberghe on August 07, 2010, 01:39:31 PM
Hello,

Can anyone tell me how to trap SHIFT+TAB.

Thank you.

Marc
Title: Re: SHIFT TAB
Post by: Paul Squires on August 07, 2010, 05:48:53 PM
Try this in the FF_PUMPHOOK:

(you could also test for the active Form/Control to see if you actually want to act on the Shift+Tab based on the logic of your program).



   Select Case Msg.message
   
      Case %WM_KEYDOWN
       
         If msg.wParam = %VK_TAB Then
            If (GetAsyncKeyState(%VK_SHIFT) And &H8000) <> 0 Then
               ? "Shift+TAB"
            End If
         End If

   End Select
     

Title: Re: SHIFT TAB
Post by: Marc van Cauwenberghe on August 07, 2010, 06:12:48 PM
Thank you Paul. Just what I needed.

Marc