well, let me tell you my aim

I have designed a virtual keyboard with my customized set of buttons. for
every key pressed holding a character, everything is working just fine. As I
mentioned below I'm using the

ord(Key) - ord('a') + ord('A')  to convert between lowercase and
uppercase...

I should rephrase my question, I dont want to display @ whenever I press
shift+2, but I want to display whatever key is associated with the 2 key...
for instance in the example you gave, on british keyboards the double quote.
That is why I wanted to know if there is a relation between 2 and the key
above it...

Thx

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] Behalf
Of Wim, W.A. ten Brink
Sent: Tuesday, February 28, 2006 2:35 PM
To: [email protected]
Subject: [delphi-en] Re: conversion between lowercase and uppercase chars


No.

Problem is, those uppercase characters are very keyboard-dependant.
If you have a British keyboard, the uppercase 2 would be a double
quote and not the @ sign. You'd also get other possible results with
other kinds of keyboards. Not to mention a Japanese keyboard here.

Technically speaking, key's don't have an uppercase or lowercase
value. They just have a value. Characters do have an uppercase value
but only if they are letters. There is no uppercase 2.

What you are looking for is getting the layout of the keyboard with
the additional keymapping. If you have the Platform SDK from
Microsoft (which you can download from free anyways, somewhere) then
you can check the different layouts by searching for the
word "keyboard" in this documentation.

With kind regards,
\/\//\ Wim.

--- In [email protected], Vahan Yoghoudjian <[EMAIL PROTECTED]> wrote:
>
> I know how to convert from lowercase to uppercase characters
>
> ord(Key) - ord('a') + ord('A') will return the lowercase of the
pressed key
> // after making sure that Key is a lowercase character of course
>
> is there any relation where I can return the upper value of the
numerical
> keys.
>
> For example: if key 2 is pressed, I want to return @, if key 4 is
pressed I
> want to return $, etc...
>
> Thanks in advance
>
> Vahan
>
>
>
> [Non-text portions of this message have been removed]
>







-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED]
Yahoo! Groups Links








-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED] 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/delphi-en/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to