[Lazarus] TSpinEdit and TFloatSpinEdit
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. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] TSpinEdit and TFloatSpinEdit
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 Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] TSpinEdit and TFloatSpinEdit
Does Delphi even have a TFloatSpinEdit? I suppose it does but I haven't found anything by googling. On Mon, Nov 18, 2013 at 7:43 PM, Howard Page-Clark h...@talktalk.net wrote: 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 Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- Shalom, Avishai avishai.g...@gmail.com אבישי גוֹר -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus