Recent

Author Topic: TFLoatSpinEdit is a joke?  (Read 6799 times)

endik

  • New Member
  • *
  • Posts: 29
TFLoatSpinEdit is a joke?
« on: June 01, 2007, 01:57:01 pm »
Float numbers with coma ',' instead of dot '.' ?
Is it a joke?

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
RE: TFLoatSpinEdit is a joke?
« Reply #1 on: June 01, 2007, 02:59:38 pm »
Here in Brazil we use comma in non-integer numbers. And no, we don't consider this a joke.

I don't know how FloatSpin is currently implemented. In theory it should read the system's settings and find a adequate separator, but it may be hardcoded.

endik

  • New Member
  • *
  • Posts: 29
RE: TFLoatSpinEdit is a joke?
« Reply #2 on: June 01, 2007, 03:11:41 pm »
I think that in languages community the default separator is 'dot'. If I use this component, before reading its contents I need to change , ->. since lazarus does not understand ','. My comp settings are set to '.' so it seems as a bug rather that settings incompatibility.

There should be a sort of DecimalSeparator property for this component, I guess

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2649
RE: TFLoatSpinEdit is a joke?
« Reply #3 on: June 01, 2007, 04:51:10 pm »
there is one global DecimalSeparator variable in your app, which initially uses the value of your OS.
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

 

TinyPortal © 2005-2018