What is the suitable function to Clipper's KEYBOARD()

Post Reply
User avatar
RAMESHBABU
Posts: 591
Joined: Fri Oct 21, 2005 5:54 am
Location: Secunderabad (T.S), India

What is the suitable function to Clipper's KEYBOARD()

Post by RAMESHBABU »

Hi All

Plase guide me how to post VK_TAB from the current control of a DIALOG
I.E TSBROWSE to an another CONTROL in the DIALOG automatically
without literally pressing the TAB key on the keyboard, like the way in
clipper KEYBOARD(K_TAB).

- Ramesh Babu P
User avatar
James Bott
Posts: 4654
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA
Contact:

Post by James Bott »

Here is how you can simulate Clipper's keyboard() function:

FUNCTION FwKeyboard( oWnd, nKey )

oWnd:SetFocus()
oWnd:PostMsg( WM_KEYDOWN, nKey, 0)

RETURN NIL
User avatar
tnhoe
Posts: 83
Joined: Tue Nov 08, 2005 11:09 am
Location: Malaysia
Contact:

Post by tnhoe »

__keyboard(K_TAB)
Regards

Hoe, email: easywin3@yahoo.com
User avatar
RAMESHBABU
Posts: 591
Joined: Fri Oct 21, 2005 5:54 am
Location: Secunderabad (T.S), India

Post by RAMESHBABU »

Mr.James and Mr.tnhoe

Thank you very much for your reply.

Ultimately the following code by Mr.James has worked and the __Keyboard(VK_TAB) has performed an illegal operation!

>FUNCTION FwKeyboard( oWnd, nKey )

>oWnd:SetFocus()
>oWnd:PostMsg( WM_KEYDOWN, nKey, 0)

>RETURN NIL

Regards

- Ramesh Babu P
Post Reply