xBrowse - numerical pad on keyboard

xBrowse - numerical pad on keyboard

Postby Otto » Sat Nov 03, 2007 6: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
User avatar
Otto
 
Posts: 6327
Joined: Fri Oct 07, 2005 7:07 pm

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

Postby Otto » Sat Nov 03, 2007 3: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
User avatar
Otto
 
Posts: 6327
Joined: Fri Oct 07, 2005 7:07 pm

Postby Antonio Linares » Sat Nov 03, 2007 6: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42079
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Otto » Sat Nov 03, 2007 7: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.
User avatar
Otto
 
Posts: 6327
Joined: Fri Oct 07, 2005 7:07 pm

Postby Antonio Linares » 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
User avatar
Antonio Linares
Site Admin
 
Posts: 42079
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 57 guests