Inkey() result

Inkey() result

Postby Dutchera » Tue Jun 12, 2007 9:02 am

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?
Dutchera
 
Posts: 3
Joined: Mon Mar 26, 2007 8:32 am
Location: Eindhoven, the Netherlands

Postby Antonio Linares » Tue Jun 12, 2007 9:19 am

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
User avatar
Antonio Linares
Site Admin
 
Posts: 42122
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Dutchera » Tue Jun 12, 2007 12:29 pm

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
Dutchera
 
Posts: 3
Joined: Mon Mar 26, 2007 8:32 am
Location: Eindhoven, the Netherlands

Postby Antonio Linares » Wed Jun 13, 2007 8:09 am

Rob,

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

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42122
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 32 guests