Mega Search
23.2 Million


Sign Up

Make a donation  
New to FireMonkey question with TSpinBox  
News Group: embarcadero.public.delphi.firemonkey

Hi Everyone,

I need help understanding how the TSpinBox and TNumberBox are supposed to work.  I've created a single form Windows HD Firemonkey Desktop app and a simple Android app with a TSpinBox and TNumberBox on it but when I input directly, the caret behaves in an unexpected way on both platforms.

Basically, just create a Firemonkey Desktop App and drop a TSpinBox on it.

Set the SpinBox1 properties as follows;
  DecimalDigits := 2
  Max := 9.99
  Min := 0
  ValueType := Float
  Increment := .01

Run your app and tab into the SpinBox1 field.  Once in the field, enter the value "2.15" and the value will be changed to "9.59".  Why in the world is this happening?  Have I missed a setting?  It does this on both Windows and Android for me.

I'm using Delphi XE6 with Update 1

All guidance will be appreciated.

Regards,
John

Vote for best question.
Score: 0  # Vote:  0
Date Posted: 16-Jan-2015, at 7:36 PM EST
From: John F. Sklavounos
 
Re: New to FireMonkey question with TSpinBox [Edit]  
News Group: embarcadero.public.delphi.firemonkey
> {quote:title=John F. Sklavounos wrote:}{quote}
> Hi Everyone,
> 
> I need help understanding how the TSpinBox and TNumberBox are supposed to work.  I've created a single form Windows HD Firemonkey Desktop app and a simple Android app with a TSpinBox and TNumberBox on it but when I input directly, the caret behaves in an unexpected way on both platforms.
> 
> Basically, just create a Firemonkey Desktop App and drop a TSpinBox on it.
> 
> Set the SpinBox1 properties as follows;
>   DecimalDigits := 2
>   Max := 9.99
>   Min := 0
>   ValueType := Float
>   Increment := .01
> 
> Run your app and tab into the SpinBox1 field.  Once in the field, enter the value "2.15" and the value will be changed to "9.59".  Why in the world is this happening?  Have I missed a setting?  It does this on both Windows and Android for me.
> 
> I'm using Delphi XE6 with Update 1
> 
> All guidance will be appreciated.
> 
> Regards,
> John

Not an answer but work as expected in Xe7up1 (Win32)
and
as you describe in XE6 (Win32) 

NB source changed a lot 
--
Linden
"Mango" was Cool but "Wasabi" was Hotter but remember it's all in the "source"

Edited by: Linden ROTH on Jan 17, 2015 3:26 AM

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 17-Jan-2015, at 3:27 AM EST
From: Linden ROTH