mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-14 21:59:07 +02:00
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
(cherry picked from commit 603fb72945
)
This commit is contained in:
parent
c2d023ea9e
commit
db180e7818
@ -43,6 +43,12 @@ begin
|
|||||||
inherited Change;
|
inherited Change;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure TCustomFloatSpinEdit.EditingDone;
|
||||||
|
begin
|
||||||
|
UpdateControl;
|
||||||
|
inherited EditingDone;
|
||||||
|
end;
|
||||||
|
|
||||||
function TCustomFloatSpinEdit.RealGetText: TCaption;
|
function TCustomFloatSpinEdit.RealGetText: TCaption;
|
||||||
begin
|
begin
|
||||||
if HandleAllocated then
|
if HandleAllocated then
|
||||||
|
@ -53,6 +53,7 @@ type
|
|||||||
protected
|
protected
|
||||||
class procedure WSRegisterClass; override;
|
class procedure WSRegisterClass; override;
|
||||||
procedure Change; override;
|
procedure Change; override;
|
||||||
|
procedure EditingDone; override;
|
||||||
function RealGetText: TCaption; override;
|
function RealGetText: TCaption; override;
|
||||||
procedure RealSetText(const AValue: TCaption); override;
|
procedure RealSetText(const AValue: TCaption); override;
|
||||||
procedure TextChanged; override;
|
procedure TextChanged; override;
|
||||||
|
Loading…
Reference in New Issue
Block a user