xBrowse - numerical pad on keyboard

Post Reply
User avatar
Otto
Posts: 4470
Joined: Fri Oct 07, 2005 7:07 pm
Contact:

xBrowse - numerical pad on keyboard

Post 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
R.F.
Posts: 840
Joined: Thu Oct 13, 2005 7:05 pm

Post 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
Saludos
R.F.
User avatar
Otto
Posts: 4470
Joined: Fri Oct 07, 2005 7:07 pm
Contact:

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

Post 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
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Otto
Posts: 4470
Joined: Fri Oct 07, 2005 7:07 pm
Contact:

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

Post 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.
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply