Change focus

Post Reply
Natter
Posts: 1244
Joined: Mon May 14, 2007 9:49 am

Change focus

Post by Natter »

Hi !

There are several controls of the type TGET, when you press the up and down arrow keys, the focus changes. Can I prevent the focus from changing when these keys are pressed ?
User avatar
karinha
Posts: 7948
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil
Been thanked: 3 times
Contact:

Re: Change focus

Post by karinha »

If I understood the question...

Code: Select all | Expand


   IF GETASYNCKEY( VK_UP )  // in vkey.ch

      RETURN( .F. )

   ENDIF

   IF GETASYNCKEY( VK_DOWN )

      RETURN( .T. )

   ENDIF
 


Regards, saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Natter
Posts: 1244
Joined: Mon May 14, 2007 9:49 am

Re: Change focus

Post by Natter »

Thanks for your help !
And what the ReadKey() function does not work ?
Post Reply