diff --git a/components/exctrls/source/exeditctrls.pas b/components/exctrls/source/exeditctrls.pas index bdc1a598a..40785ee96 100644 --- a/components/exctrls/source/exeditctrls.pas +++ b/components/exctrls/source/exeditctrls.pas @@ -47,6 +47,8 @@ type FDecimalSeparator: Char; FNegCurrencyFormat: TSpinEditNegCurrencyFormat; FThousandSeparator: Char; + function IncrementStored: Boolean; + function MaxValueStored: Boolean; procedure SetCurrencyFormat(AValue: TSpinEditCurrencyFormat); procedure SetCurrencyString(AValue: String); procedure SetDecimals(AValue: TSpinEditCurrencyDecimals); @@ -55,9 +57,6 @@ type procedure SetThousandSeparator(AValue: Char); protected procedure EditKeyPress(var Key: char); override; - function IncrementStored: Boolean; override; - function MaxValuestored: Boolean; override; - function MinValuestored: Boolean; override; function SafeInc(AValue: Currency): Currency; override; function SafeDec(AValue: Currency): Currency; override; function TextIsNumber(const S: String; out ANumber: Currency): Boolean; override; @@ -82,6 +81,8 @@ type read FNegCurrencyFormat write SetNegCurrencyFormat; property ThousandSeparator: Char read FThousandSeparator write SetThousandSeparator; + property Increment stored IncrementStored; + property MaxValue stored MaxValueStored; end; { TCurrSpinEdit } @@ -309,6 +310,7 @@ end; constructor TCustomCurrSpinEditEx.Create(AOwner: TComponent); begin inherited; + FIncrement := 1; FMaxValue := 0; FMinValue := 0; // --> disable Max/Min check by default ResetFormatSettings; @@ -334,12 +336,6 @@ begin Result := FMaxValue <> 0; end; -function TCustomCurrSpinEditEx.MinValueStored: Boolean; -begin - Result := FMinValue <> 0; -end; - - procedure TCustomCurrSpinEditEx.ResetFormatSettings; begin FDecimals := DefaultFormatSettings.CurrencyDecimals;