defining a key to a function

defining a key to a function

Postby plantenkennis » Sun Jun 20, 2021 9: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
User avatar
plantenkennis
 
Posts: 166
Joined: Wed Nov 25, 2015 7:13 pm
Location: the Netherlands

Re: defining a key to a function

Postby Antonio Linares » Mon Jun 21, 2021 9: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42107
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: defining a key to a function

Postby plantenkennis » Tue Jun 22, 2021 6: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
User avatar
plantenkennis
 
Posts: 166
Joined: Wed Nov 25, 2015 7:13 pm
Location: the Netherlands


Return to FiveMac / FivePhone (iPhone, iPad)

Who is online

Users browsing this forum: No registered users and 13 guests