mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 01:39:42 +02:00
T(Float)SpinEditEx: In InitializeWnd set Text to represent FValue, otherwise NullValueBehavious will be applied in call to UpdateControl.
(cherry picked from commit a3ba11e5c3
)
This commit is contained in:
parent
8b8bcd3a51
commit
433708a18b
@ -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