in

C1 Community

ComponentOne Community is a free source for developers and help authors to collaborate and communicate.

Edit cell, use the decimal key of the number pad: first there is a point, then a comma

Last post 07-28-2008 2:31 AM by Lindenberger. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 04-22-2008 7:03 AM

    Edit cell, use the decimal key of the number pad: first there is a point, then a comma

    If you got a German Windows, choose in the language bar ""English". Now you can press the decimal key of the number pad: cell is changing to edit mode, the first character is a Point ('.') - press again the key - next character is a comma (',')

    How can I have always a point it I got the English language bar?

    Thanks in advance

    Uwe

  • 04-23-2008 10:41 AM In reply to

    Re: Edit cell, use the decimal key of the number pad: first there is a point, then a comma

    Hello Uwe,
     
    To implement the desired German number settings, we need to have the Local input
    settings to German. We cannot achieve this with English setting in the Language bar.
     
    However, there is a workaround where you will have to change the Regional Settings
    in the Control Panel on the machine. You would have to customize the Decimal Symbol
    and Digit grouping Symbol. This will allow you to use the format you wish.
     
    I hope this answers your query.
     
    Thanks & Regards,
     
    Allen Smith
    <Lindenberger> wrote in message news:204123@10.0.1.98...

    If you got a German Windows, choose in the language bar ""English". Now you can press the decimal key of the number pad: cell is changing to edit mode, the first character is a Point ('.') - press again the key - next character is a comma (',')

    How can I have always a point it I got the English language bar?

    Thanks in advance

    Uwe



    http://helpcentral.componentone.com/cs/forums/p/75030/204123.aspx#204123

  • 05-06-2008 9:24 AM In reply to

    Re: Edit cell, use the decimal key of the number pad: first there is a point, then a comma

    Hello Allen

    Thank you for your answer. It took a little time, to analyze the problem better.

    What you need to reproduce the error, is a program, that can change it's process language and has a flexgrid inside.

    Here is the code to change process culture:

    System.Globalization.CultureInfo oCulture =new System.Globalization.CultureInfo("de");

    or

    System.Globalization.
    CultureInfo oCulture =new System.Globalization.CultureInfo("en");

    System.Threading.Thread.CurrentThread.CurrentUICulture = oCulture;

    System.Threading.Thread.CurrentThread.CurrentCulture = oCulture;

    And here are the results of my examination:

    The problem occurs if the process runs with German culture and the input language is English (chosen in the taskbar or with <Alt + Shift>). Then the decimal key of the number pad prints a comma into edit cell of flexgrid and not a point, like user expects.

    OS: English Windows

    Process Culture         Input language            Edit cell prints with number pads decimal key a:

    En                            En                             Point

    En                            De                             Comma

    De                            En                             Comma !! User expects a Point!!

    De                            De                             Comma

    Unfortunately I cannot influence the process culture of the process I run - it is customizable (as well as the input language).

    Best Regards

    Uwe

  • 07-28-2008 2:31 AM In reply to

    Re: Edit cell, use the decimal key of the number pad: first there is a point, then a comma

    Is anybody there, who can understand and reproduce the problem? Is there a solution for this special case?

    Thanks

    Uwe

Page 1 of 1 (4 items)
Contact ComponentOne: 1.800.858.2739 ©1987-2008 ComponentOne LLC All Rights Reserved.