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.
Mailing lists / lazarus / 2013-11
TSpinEdit and TFloatSpinEdit
3 messages · 2 people ·
- AAvishai 2
- HHoward Page-Clark 1
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
Avishai wrote 5 lines
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
Does Delphi even have a TFloatSpinEdit? I suppose it does but I haven't found anything by googling.
Howard Page-Clark wrote 21 lines
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
--
_______________________________________________
Lazarus mailing list
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Shalom,
Avishai
????? ????
