On Mon, 28 Jul 2008, Mike Evans (Gmail) wrote:
Hi Mike,
> This is similar with something I was searching the last days. Under DOS and
> independent from the writing language when you press "." from the numeric
> keypad you are always getting "." but under windows the char is language
> dependant. Is it possible to add something like HB_ExtLastKey that will
> return the pressed key or even better a way to overcomes the windows
> translation? The funny thing about this is that if we change the decimal
> symbol from the regional and language options-customize from "." to "," the
> Excell writes always the corresponding value (numeric keypad), but under
> notepad , (x)Harbour we are getting a value that corresponds to the
> language.
It's yet another problem: MS-Win keyboard handling.
It is as is and we have to accept it or we can add workaround
for some chosen keyboard drivers. Unfortunately in some
countries it may create more new troubles then fix known problems.
If we find some MS-Win user with enough experience to chose
some solutions which will be portable then we can hardcode it.
Otherwise I can only suggest some workarounds which may but does
not have to help some people. In this case we can hardcode in
GTWIN and GTWVT the behavior of numpad dot key using its scan
code but I do not know if it's good idea in non Latin/Greek based
countries (???) which may need some different behavior. Opinions?
Please also note that the computer world is changing. The time
of PC keyboard "standard" is finishing and new devices uses it's
own keyboards very often not compatible so code which is to strictly
hardware oriented has problems. And I'm not talking about famous
MS-Win dedicated keyboard with 3 keys only ;-)
+====================+\
| +------+-----+ |o|
| | CTRL | ALT | | |
| +-+----+---+-+ | |
| | DELETE | | |
| +--------+ | |
+====================+ |
\____________________\|
best regards,
Przemek
_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour