T(Float)SpinEdit: update the control in EditingDone so that text matches Value. Reported by Jamie in https://forum.lazarus.freepascal.org/index.php/topic,57722.msg429596.html#msg429596

This commit is contained in:
Bart 2022-01-05 12:33:08 +01:00
parent f48623e90c
commit 603fb72945
2 changed files with 7 additions and 0 deletions

View File

@ -43,6 +43,12 @@ begin
inherited Change;
end;
procedure TCustomFloatSpinEdit.EditingDone;
begin
UpdateControl;
inherited EditingDone;
end;
function TCustomFloatSpinEdit.RealGetText: TCaption;
begin
if HandleAllocated then

View File

@ -53,6 +53,7 @@ type
protected
class procedure WSRegisterClass; override;
procedure Change; override;
procedure EditingDone; override;
function RealGetText: TCaption; override;
procedure RealSetText(const AValue: TCaption); override;
procedure TextChanged; override;