Page 1 of 1

Inkey() result

Posted: Tue Jun 12, 2007 9:02 am
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?

Posted: Tue Jun 12, 2007 9:19 am
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

Posted: Tue Jun 12, 2007 12:29 pm
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

Posted: Wed Jun 13, 2007 8:09 am
by Antonio Linares
Rob,

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