mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-07 18:58:04 +02:00
T(Float)SpinEditEx: In InitializeWnd set Text to represent FValue, otherwise NullValueBehavious will be applied in call to UpdateControl.
This commit is contained in:
parent
f6555a287e
commit
a3ba11e5c3
@ -204,6 +204,9 @@ end;
|
||||
procedure TSpinEditExBase.InitializeWnd;
|
||||
begin
|
||||
inherited InitializeWnd;
|
||||
// at this point Text will be empty, which in UpdateControl will invoke the NullValueBehaviour
|
||||
// so make sure that Text will represent FValue now
|
||||
Text := ValueToStr(FValue);
|
||||
UpdateControl;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user