[lazarus] spinedit bug?

Ken Moffat kmoffat at drizzle.com
Sun Nov 9 12:23:58 EST 2003


Mattias Gaertner wrote:

>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
>
>  
>

fpc-1.0.11-031022.i386.rpm
fpcsrc-1.0.11-20031022.i386.rpm
lazarus-0.9.0.6-fpc_1.0.11_031022.i386.rpm

which I converted to debian using alien.
Running Libranet Linux partially upgraded to sid.

When I set the minvalue of the spinedit in FormCreate it works fine.
Thanks.

-- 
Ken








More information about the Lazarus mailing list