FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour How to Catch VK_LEFT / VK_RIGHT IN oBrw:bKeyDown Event ?
Posts: 336
Joined: Mon Dec 07, 2009 02:49 PM

How to Catch VK_LEFT / VK_RIGHT IN oBrw:bKeyDown Event ?

Posted: Mon Oct 21, 2019 07:57 AM
Dear Rao Sir ,

I want to catch the event of pressing LEFT , RIGHT button in either oBrw:bKeydown OR oBrw:bKeyChar to SET FOCUS to another Control. Could you please guide me for the same. Thanks in advance...!

something like this :
Code (fw): Select all Collapse
  oBrwTAsset:bKeyChar := < | nKey, nFlags, oBrw, oCol |

                if ( nKey == VK_RIGHT .OR. nKey == VK_LEFT   )
                  oBrwTLib:SetFocus() 
                endif


              RETURN nil
       >
Thanks

Shridhar

FWH 24.04, BCC 7 32 bit, MariaDB
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM

Re: How to Catch VK_LEFT / VK_RIGHT IN oBrw:bKeyDown Event ?

Posted: Mon Oct 21, 2019 08:09 AM

Not possible, unless you modify xbrowse code yourself.

Regards



G. N. Rao.

Hyderabad, India

Continue the discussion