Numeric Keypad

Find out how to get things done with Servoy. Post how YOU get things done with Servoy

Numeric Keypad

Postby elmono_acosta » Wed Jun 30, 2004 9:41 am

Here in Spain, we use the comma as the decimal separator. The period is for thousands separations. So the regional setting for our computers are configured like this.

I would like my users to type with the numeric keyboard on the right. The problem is that using this keyboard, you have is a period, not a comma. so when you type in a numeric field, Ej, 45.3 Servoy Understands 453 The only way that servoy works fine is if I type, 45,3. (think about it how uncomfortable for numeric input is, typing numbers at the right part of the keyboard and coming back to the center of the keyboard looking for the comma)

Any ideas how can I make the period to by a comma for numeric input, or any other way to solve this ???
elmono_acosta
 
Posts: 41
Joined: Thu Jun 17, 2004 11:52 am

Postby IT2Be » Wed Jun 30, 2004 10:12 am

You can change your 'locale' settings in the preference panel. This should solve your problem.

Bare in mind that any formatting you do (in the properties of the field) should be with a point as decimal seperator. The locale settings will 'translate' this for you...
Marcel J.G. Trapman (IT2BE)
SAN partner - Freelance Java and Servoy
Servoy Components - IT2BE Plug-ins and Beans for Servoy
ServoyForge - Open Source Components for Servoy
User avatar
IT2Be
Servoy Expert
 
Posts: 4766
Joined: Tue Oct 14, 2003 7:09 pm
Location: Germany

Postby elmono_acosta » Wed Jun 30, 2004 12:25 pm

Have you tried it ??
IM-4ve played a lot with the locale settings and I canM-4t get it to work.
elmono_acosta
 
Posts: 41
Joined: Thu Jun 17, 2004 11:52 am

Postby IT2Be » Wed Jun 30, 2004 12:33 pm

yep, in holland, germany etc. the comma is also the decimal seperator. It worked from day one... On both windows and mac machines...
Marcel J.G. Trapman (IT2BE)
SAN partner - Freelance Java and Servoy
Servoy Components - IT2BE Plug-ins and Beans for Servoy
ServoyForge - Open Source Components for Servoy
User avatar
IT2Be
Servoy Expert
 
Posts: 4766
Joined: Tue Oct 14, 2003 7:09 pm
Location: Germany

Postby elmono_acosta » Wed Jun 30, 2004 12:37 pm

Can you please send me a print screen of the locale setting you use ???
I would really appreciate it.
elmono_acosta
 
Posts: 41
Joined: Thu Jun 17, 2004 11:52 am

Postby Jan Aleman » Mon Jul 05, 2004 2:15 pm

The numeric keyboard is not influenced by the locale setting. If your numeric keyboard sends . instead of , it is not configured properly on operating system level. Probably you are using a US keyboard layout?
Jan Aleman
Servoy
Jan Aleman
 
Posts: 2083
Joined: Wed Apr 23, 2003 9:49 pm
Location: Planet Earth

Postby Harjo » Fri Nov 05, 2004 10:36 pm

I would like to give this problem more attention!

This is a problem in the netherlands too! (on Windows, not on MAC!)
We use a ',' for decimal caracters, and 9 out of 10 users have a US-keyboard. This is really a problem. Many of my customers complain about this, because other administration software, like KING, Exact UNIT4 etc.. has built in workarounds for this. So if you start such a program and use the . on the numeric keypad, it is returning a comma.

Is such workaround/preference doable in Servoy? or is there another solution?
Harjo Kompagnie
ServoyCamp
Servoy Certified Developer
Servoy Valued Professional
SAN Developer
Harjo
 
Posts: 4321
Joined: Fri Apr 25, 2003 11:42 pm
Location: DEN HAM OV, The Netherlands

Postby Jan Aleman » Fri Nov 05, 2004 11:49 pm

HJK wrote:I would like to give this problem more attention!

This is a problem in the netherlands too! (on Windows, not on MAC!)
We use a ',' for decimal caracters, and 9 out of 10 users have a US-keyboard. This is really a problem. Many of my customers complain about this, because other administration software, like KING, Exact UNIT4 etc.. has built in workarounds for this. So if you start such a program and use the . on the numeric keypad, it is returning a comma.

Is such workaround/preference doable in Servoy? or is there another solution?


Just like Exact, King and Unit4 developers: write your own hack. Look into windows utils that can fix the keymapping, for example on registry level, alternatively use a servoy event to do a replace.
Jan Aleman
Servoy
Jan Aleman
 
Posts: 2083
Joined: Wed Apr 23, 2003 9:49 pm
Location: Planet Earth

Postby Harjo » Sat Nov 06, 2004 12:42 am

Yes, I tried that allready, changing the registry is an option, not a nice one! but only works for win 2000/xp not on win98. Other tools work only for win98.

I thought this maybe easier to do in Java itself, instead of creating/changing many, many fields with and find&replace.
Harjo Kompagnie
ServoyCamp
Servoy Certified Developer
Servoy Valued Professional
SAN Developer
Harjo
 
Posts: 4321
Joined: Fri Apr 25, 2003 11:42 pm
Location: DEN HAM OV, The Netherlands

Postby Jan Aleman » Sat Nov 06, 2004 12:52 am

HJK wrote:Yes, I tried that allready, changing the registry is an option, not a nice one! but only works for win 2000/xp not on win98. Other tools work only for win98.

I thought this maybe easier to do in Java itself, instead of creating/changing many, many fields with and find&replace.


Apart from the fact that the 98 in win98 means it's 6 years old (time for an upgrade?) there are many levels on which you could write a fix. If the fix has to be done on Java level you'd have to speak to Sun or the company that builds your JVM. We could also build a workaround on Servoy level but I'm fairly sure that upgrading to a newer version of windows is much more economical.
Jan Aleman
Servoy
Jan Aleman
 
Posts: 2083
Joined: Wed Apr 23, 2003 9:49 pm
Location: Planet Earth

Keyboard Layout

Postby gzola » Sat May 27, 2006 10:18 am

For who it uses Windows I have prepared a new Layout of keyboard that resolves the problem.

It works with Windows 200, XP and 2003 Server:

http://www.comune.nuoro.it/Servoy/ItaComma.zip


For Jan Aleman:
There are innovation on this problem?
Giovanni Zola
Servizio Innovazione Informatica
Comune di Nuoro

Version: 5.2.4 - build 1006
Java version 1.6.x (Windows 2000/2003 - XP - Vista - Windows 7)
Mysql 5.0
User avatar
gzola
 
Posts: 91
Joined: Mon Nov 29, 2004 2:24 pm
Location: Nuoro, Sardegna, Italy

Re: Keyboard Layout

Postby Jan Aleman » Sat May 27, 2006 10:27 am

gzola wrote:For who it uses Windows I have prepared a new Layout of keyboard that resolves the problem.

It works with Windows 200, XP and 2003 Server:

http://www.comune.nuoro.it/Servoy/ItaComma.zip


For Jan Aleman:
There are innovation on this problem?

How do you mean? I think using a correct keyboard layout is the solution.

btw is the layout you posted for Italian keyboards? If yes you might want to point that out before other European users get really confused: nearly every European country has a different keyboard layout.
Jan Aleman
Servoy
Jan Aleman
 
Posts: 2083
Joined: Wed Apr 23, 2003 9:49 pm
Location: Planet Earth

Postby gzola » Sat May 27, 2006 11:21 am

Yes. The layout is one modification of Italian layout for Windows S.O..

Everyone can prepare just layout with this software of Microsoft (.NET framework requested):

http://www.microsoft.com/globaldev/tools/msklc.mspx

How do you mean? I think using a correct keyboard layout is the solution.


Ok. If therefore we will adapt ourselves.

Thanks and Best regards.
Giovanni Zola
Servizio Innovazione Informatica
Comune di Nuoro

Version: 5.2.4 - build 1006
Java version 1.6.x (Windows 2000/2003 - XP - Vista - Windows 7)
Mysql 5.0
User avatar
gzola
 
Posts: 91
Joined: Mon Nov 29, 2004 2:24 pm
Location: Nuoro, Sardegna, Italy


Return to How To

Who is online

Users browsing this forum: No registered users and 5 guests