defining a key to a function

Post Reply
User avatar
plantenkennis
Posts: 166
Joined: Wed Nov 25, 2015 7:13 pm
Location: the Netherlands
Contact:

defining a key to a function

Post by plantenkennis »

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
User avatar
Antonio Linares
Site Admin
Posts: 42556
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 31 times
Been thanked: 80 times
Contact:

Re: defining a key to a function

Post by Antonio Linares »

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
User avatar
plantenkennis
Posts: 166
Joined: Wed Nov 25, 2015 7:13 pm
Location: the Netherlands
Contact:

Re: defining a key to a function

Post by plantenkennis »

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
Post Reply