FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour xBrowse - numerical pad on keyboard
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
xBrowse - numerical pad on keyboard
Posted: Sat Nov 03, 2007 06:31 AM

the numerical pad returns if you press 1 - > 97 which is the ASC value for the a .

Could someone please help on that.

Regards,
Otto

Posts: 840
Joined: Thu Oct 13, 2005 07:05 PM
xBrowse - numerical pad on keyboard
Posted: Sat Nov 03, 2007 11:15 AM

Otto:

You don't have to use the ASCII code for the keypad keys or the function keys.

You have to use the "Virtual Key" value provided in the VKEY.CH (linked automatically with Fivewin.ch).

In VKEY.CH you will find the value for the numeric key pad.

Greetings from Argentina

Saludos

R.F.
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
xBrowse - numerical pad on keyboard
Posted: Sat Nov 03, 2007 03:52 PM

Hello Rene,
are you on holidays in Argentina or working?
Do you have a code sample how to use “virtual key”?

Why does xBowse return other values than wbrowse.
As far as I understand both inherit from TControl and the method keydown is
the same in xBrowse than in wbrowse.

Regards,
Otto

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
xBrowse - numerical pad on keyboard
Posted: Sat Nov 03, 2007 06:13 PM

Otto,

If you do oXBrowse:bKeyDown = { | nKey | MsgInfo( nKey ) } and press 1 on the numeric keypad, then you get 97 which it is from vkey.ch:

define VK_NUMPAD1 97

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
xBrowse - numerical pad on keyboard
Posted: Sat Nov 03, 2007 07:33 PM

THank you, Antonio,
Now I understand. For the small a do I have to check the “Cap look” state?


But I don’t understand why these to browsers have different values.

Method keydown filters out some keys and passes if there is no hit the value
to:
return Super:KeyDown( nKey, nFlags )
which I think is the attached window?
Maybe someone can explain this. Thanks in advance.

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
xBrowse - numerical pad on keyboard
Posted: Sat Nov 03, 2007 11:47 PM

Otto,

>
return Super:KeyDown( nKey, nFlags )
which I think is the attached window?
>

It is not the attached window. Its the Method KeyDown() from its parent Class TControl.

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion