Recent

Author Topic: Tspinedit possible bug  (Read 5208 times)

picstart

  • Full Member
  • ***
  • Posts: 236
Tspinedit possible bug
« on: March 07, 2010, 05:39:37 pm »
When decimalplaces is set to two and an integer say 123 is set to value was expecting to see 1.23 in the control and with the increment set to 1
I was also expecting with an increment request to see 1.23 go to 1.24.
Instead I see 123.00 and after increment 124.00 I see minuscule value in this so I think it is a bug.
Stable and debug-able 26.2 fpc 2.2 win 2k
Am I missing something?

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 10310
  • Debugger - SynEdit - and more
    • wiki
Re: Tspinedit possible bug
« Reply #1 on: March 07, 2010, 06:19:35 pm »
You mean TFloatSpinEdit ?

Value and increment both are Double. So you can enter a value of 1.23 and an increment of 0.01

I am using 0.9.29

picstart

  • Full Member
  • ***
  • Posts: 236
Re: Tspinedit possible bug
« Reply #2 on: March 08, 2010, 12:50:52 am »
Tfloatspinedit works thank you Martin.  The tspinedit has the decimalplaces property ( not in the object nspector but it is there) but as Martin points out if you want the decimal places to work then Tfloatspinedit is the only way to go.

 

TinyPortal © 2005-2018