[lazarus] spinedit bug?

Mattias Gaertner nc-gaertnma at netcologne.de
Sun Nov 9 10:52:41 EST 2003


On Sun, 09 Nov 2003 07:54:23 -0800
Ken Moffat <kmoffat at drizzle.com> wrote:

> Mattias Gaertner wrote:
> 
> >On Sat, 08 Nov 2003 21:52:18 -0800
> >Ken Moffat <kmoffat at drizzle.com> wrote:
> >
> >  
> >
> >>The SpinEdit control will not decrease to zero. If I set min value to 0 
> >>it stops at 1.
> >>    
> >>
> >
> >It seems to be a bug in TWriter. You can't set a default value for
> >properties of type single. But TWriter ignores this and simply assumes 0
> >is the default. So, 0 is not saved to the lfm file.
> >
> >Does 1.9 allow default values for properties of type single?
> >
> >
> >Mattias
> >
> >  
> >
> 
> Shouldn't I be able to spin it down to zero?

Yes. Just set the MinValue in the Form.Create event.


> also, when I attempt to set a default below 1 ie, 0.1, I get an "Invalid 
> float" error.

Hmm. Works for me. What compiler are you using?


Mattias






More information about the Lazarus mailing list