FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveMac / FivePhone (iPhone, iPad) defining a key to a function
Posts: 166
Joined: Wed Nov 25, 2015 07:13 PM
defining a key to a function
Posted: Sun Jun 20, 2021 09:21 AM

Hello,
I have a browse with all plantnames. If I doubleclick on a row a new window is opened that shows all the details of that plant. On this window I have two buttons to go to the previous row or the next row.
Now i want to do this by clicking on the keyboard with the go-left or go-right button. Is this possible? So can I link a function to a key on the keyboard?

Kind regards,



René Koot
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: defining a key to a function
Posted: Mon Jun 21, 2021 09:41 AM

René,

Pease try this:

oBrowse:bKeyDown = { | nKey | MsgInfo( nKey ) }

and check if GoLeft and GoRight keys get trapped with that

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 166
Joined: Wed Nov 25, 2015 07:13 PM
Re: defining a key to a function
Posted: Tue Jun 22, 2021 06:28 PM

Hello Antonio,

Thanks, that works. The GoLeft has number 63234 and the GoRight has 63235. I use the bKeyDown on a window instead of a browse. The window that is opened has seven tabs and on 4 of them there are browses. It also works on Get's

Kind regards,



René Koot

Continue the discussion