The SpinEdit control will not decrease to zero. If I set min value to 0 it else confirm this?
Mailing lists / lazarus / 2003-11
spinedit bug?
10 messages · 4 people ·
- MMattias Gaertner 5
- KKen Moffat 3
- FFlorian Klaempfl 1
- MMicha Nelissen 1
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
The SpinEdit control will not decrease to zero. If I set min value to 0 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
The SpinEdit control will not decrease to zero. If I set min value to 0 it else confirm…
Mattias Gaertner wrote 21 lines
Shouldn't I be able to spin it down to zero?
also, when I attempt to set a default below 1 ie, 0.1, I get an "Invalid float" error.
The SpinEdit control will not decrease to zero. If I set min value to 0 it else confirm…
Mattias Gaertner wrote 56 lines
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.
The SpinEdit control will not decrease to zero. If I set min value to 0 it else confirm…
Mattias Gaertner wrote 11 lines
I suggest specifying {stored=true}.
Micha.
The SpinEdit control will not decrease to zero. If I set min value to 0 it else confirm…
Show quoted text 15 lines
Already done.
It seems, TWriter skips a value, if it is the default value. No matter what "stored" says.
Mattias
The SpinEdit control will not decrease to zero. If I set min value to 0 it else confirm…
Mattias Gaertner wrote 13 lines
No, but delphi doesn't allow it either, iirc? Do we need it?
The SpinEdit control will not decrease to zero. If I set min value to 0 it else confirm…
Show quoted text 25 lines
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
The SpinEdit control will not decrease to zero. If I set min value to 0 it else confirm…
Show quoted text 16 lines
Do we need default values for integer properties?
Mattias
The SpinEdit control will not decrease to zero. If I set min value to 0 it else confirm…
>>also, when I attempt to set a default below 1 ie, 0.1, I get an "Invalid > >>float" error.
Sorry. I misunderstood.
You get an AV, because the default value is an integer. Don't ask me why.
Mattias
