mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 04:49:19 +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;
|
procedure TSpinEditExBase.InitializeWnd;
|
||||||
begin
|
begin
|
||||||
inherited InitializeWnd;
|
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;
|
UpdateControl;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user