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

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

Postby RAMESHBABU » Tue Mar 07, 2006 4:36 pm

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
RAMESHBABU
 
Posts: 625
Joined: Fri Oct 21, 2005 5:54 am
Location: Secunderabad (T.S), India

Postby James Bott » Tue Mar 07, 2006 6:08 pm

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
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Postby tnhoe » Tue Mar 07, 2006 6:14 pm

__keyboard(K_TAB)
Regards

Hoe, email: easywin3@yahoo.com
User avatar
tnhoe
 
Posts: 83
Joined: Tue Nov 08, 2005 11:09 am
Location: Malaysia

Postby RAMESHBABU » Wed Mar 08, 2006 3:59 pm

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
User avatar
RAMESHBABU
 
Posts: 625
Joined: Fri Oct 21, 2005 5:54 am
Location: Secunderabad (T.S), India


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot], SantaCroya and 75 guests