SpinEx: allow to read the inernal formatsettings of TCustomFloatSpinEditEx (needed for derived controls).

git-svn-id: trunk@63754 -
This commit is contained in:
bart 2020-08-16 13:47:24 +00:00
parent 1f229f6246
commit ff62abace0
2 changed files with 6 additions and 0 deletions

View File

@ -437,6 +437,11 @@ begin
UpdateControl;
end;
function TCustomFloatSpinEditEx.GetFormatsettings: TFormatSettings;
begin
Result := FFS;
end;
procedure TCustomFloatSpinEditEx.EditKeyPress(var Key: char);
begin

View File

@ -195,6 +195,7 @@ type
procedure SetExponentialFormatLimitPos(AValue: Integer);
procedure SetPrecision(AValue: Integer);
protected
function GetFormatsettings: TFormatSettings;
procedure EditKeyPress(var Key: char); override;
function TextIsNumber(const S: String; out ANumber: Double): Boolean; override;
function SafeInc(AValue: Double): Double; override;