Inkey() result

Post Reply
Dutchera
Posts: 3
Joined: Mon Mar 26, 2007 8:32 am
Location: Eindhoven, the Netherlands

Inkey() result

Post by Dutchera »

We are converting a huge Clipper application into FWH and ran into following problem with the INKEY() function.

The present situation is that INKEY() returns most of the standard keys,
1-9, a-z, A-Z and more, but it does NOT return ANYTHING on any cursor
movement keys. This means, it does not react on any of these keys:
arrow-up/down/left/right, Home, End, Page Up, Page Down.

Is this a known problem and if yes, what should we do?
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Rob,

Those keys are probably routed using WM_KEYDOWN messages, and no WM_CHAR ones.

Try to change WM_CHAR into WM_KEYDOWN in HB_FUNC( __INKEY ) in your FWPPC.prg module
regards, saludos

Antonio Linares
www.fivetechsoft.com
Dutchera
Posts: 3
Joined: Mon Mar 26, 2007 8:32 am
Location: Eindhoven, the Netherlands

Post by Dutchera »

OK Antonio, that works fine, although the return values differ from the ones we're used to in Clipper. i.e. left-arrow value 5 is now value 38 etc.
This is no problem so far.
What about changing these values in the Fivewin INKEY.CH ?

Regards,
Rob
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Rob,

FiveWin does not provide an inkey.ch file. That one belongs to Harbour.
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply