Change focus

Change focus

Postby Natter » Thu Feb 21, 2019 6: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 ?
Natter
 
Posts: 1182
Joined: Mon May 14, 2007 9:49 am

Re: Change focus

Postby karinha » Thu Feb 21, 2019 3:20 pm

If I understood the question...

Code: Select all  Expand view

   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
User avatar
karinha
 
Posts: 7613
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: Change focus

Postby Natter » Fri Feb 22, 2019 11:01 am

Thanks for your help !
And what the ReadKey() function does not work ?
Natter
 
Posts: 1182
Joined: Mon May 14, 2007 9:49 am


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Jimmy and 52 guests