Page 1 of 1

Browse and lower case keys

PostPosted: Wed Mar 30, 2022 12:46 pm
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

Re: Browse and lower case keys

PostPosted: Wed Mar 30, 2022 1:06 pm
by karinha

Re: Browse and lower case keys

PostPosted: Wed Mar 30, 2022 1:34 pm
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!

Re: Browse and lower case keys

PostPosted: Wed Mar 30, 2022 5:35 pm
by nageswaragunupudi
GetKeyState( VK_SHIFT ) --> Shift key is pressed

Re: Browse and lower case keys

PostPosted: Wed Mar 30, 2022 6:30 pm
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

Re: Browse and lower case keys

PostPosted: Wed Mar 30, 2022 7:13 pm
by karinha
Maurício:

Code: Select all  Expand view
cKey:= CHR( nKey )


Regards, saludos.