FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Change focus
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
Change focus
Posted: Thu Feb 21, 2019 06:05 AM

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 ?

Posts: 8523
Joined: Tue Dec 20, 2005 07:36 PM
Re: Change focus
Posted: Thu Feb 21, 2019 03:20 PM
If I understood the question...

Code (fw): Select all Collapse
   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
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
Re: Change focus
Posted: Fri Feb 22, 2019 11:01 AM

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

Continue the discussion