Browse and lower case keys

Post Reply
User avatar
concentra
Posts: 124
Joined: Mon Nov 14, 2005 10:15 am
Location: Brazil

Browse and lower case keys

Post by concentra »

Hi.

In browses, scan codes from upper and lower case keys seems to be the same...
While in a browse, in a bKeyDown function, how do I know if the user typed a lower or upper case letter ?

Regards.
Maurício Ventura Faria
User avatar
karinha
Posts: 7951
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil
Been thanked: 3 times
Contact:

Re: Browse and lower case keys

Post by karinha »

João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
concentra
Posts: 124
Joined: Mon Nov 14, 2005 10:15 am
Location: Brazil

Re: Browse and lower case keys

Post by concentra »


Karinha, its the opposite...
ASC returns the numeric code of a character string and Browses bKeyDown gives me a numeric code of a typed character.
But in the browse, this code is the same for A and a.
It always returns the upper case code, and I need to know if the lower case one was typed...

[[]] Maurício Ventura Faria

P.S. Vai Corinthians!
User avatar
nageswaragunupudi
Posts: 10729
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Been thanked: 10 times
Contact:

Re: Browse and lower case keys

Post by nageswaragunupudi »

GetKeyState( VK_SHIFT ) --> Shift key is pressed
Regards

G. N. Rao.
Hyderabad, India
User avatar
concentra
Posts: 124
Joined: Mon Nov 14, 2005 10:15 am
Location: Brazil

Re: Browse and lower case keys

Post by concentra »

nageswaragunupudi wrote:GetKeyState( VK_SHIFT ) --> Shift key is pressed

Hi.
This does not work when "CAPS LOCK" is turned off and no SHIFT pressed.
Do you know how do I know CAPS LOCK state ?

[[]] Maurício Ventura Faria
User avatar
karinha
Posts: 7951
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil
Been thanked: 3 times
Contact:

Re: Browse and lower case keys

Post by karinha »

Maurício:

Code: Select all | Expand

cKey:= CHR( nKey )


Regards, saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Post Reply