[Lazarus] TSpinEdit and TFloatSpinEdit

Howard Page-Clark hdpc at talktalk.net
Mon Nov 18 18:43:04 CET 2013


On 18/11/2013 16:00, Avishai wrote:
> Why do we have both TSpinEdit and TFloatSpinEdit?  It seems like
> TFloatSpinEdit is enough.  TFloatSpinEdit has property DecimalPlaces
> and when set to 0, it displays an Integer (although it's a Float).
> It's easy enough to get the Integer Value, but it could have Property
> FloatValue and Property IntValue.

I presume for Delphi compatibility. It is then possible to convert a 
Delphi project to a Lazarus project without rewriting source code that 
involves spinedits. (The Delphi TSpinEdit has a Value property that is a 
longint).

Howard





More information about the Lazarus mailing list