Page 1 of 1

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

PostPosted: Tue Mar 07, 2006 4:36 pm
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

PostPosted: Tue Mar 07, 2006 6:08 pm
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

PostPosted: Tue Mar 07, 2006 6:14 pm
by tnhoe
__keyboard(K_TAB)

PostPosted: Wed Mar 08, 2006 3:59 pm
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