Page 1 of 1
xBrowse - numerical pad on keyboard
Posted: Sat Nov 03, 2007 6:31 am
by Otto
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
Posted: Sat Nov 03, 2007 11:15 am
by R.F.
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
Posted: Sat Nov 03, 2007 3:52 pm
by Otto
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
Posted: Sat Nov 03, 2007 6:13 pm
by Antonio Linares
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
Posted: Sat Nov 03, 2007 7:33 pm
by Otto
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.
Posted: Sat Nov 03, 2007 11:47 pm
by Antonio Linares
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.