RxFPC: fix get value TCurrencyEdit.DisplayText on editing data
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3642 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
parent
c98ddb84d2
commit
3b1687153b
@ -58,6 +58,7 @@ type
|
||||
FFocused: Boolean;
|
||||
FZeroEmpty: Boolean;
|
||||
function GetAsInteger: Longint;
|
||||
function GetIsNull: boolean;
|
||||
function GetText: string;
|
||||
function GetValue: Extended;
|
||||
procedure SetAsInteger(const AValue: Longint);
|
||||
@ -119,6 +120,7 @@ type
|
||||
property AsInteger: Longint read GetAsInteger write SetAsInteger;
|
||||
property DisplayText: string read GetDisplayText;
|
||||
property Value: Extended read GetValue write SetValue;
|
||||
property IsNull:boolean read GetIsNull;
|
||||
published
|
||||
{ Published declarations }
|
||||
end;
|
||||
@ -245,9 +247,14 @@ begin
|
||||
Result := Trunc(Value);
|
||||
end;
|
||||
|
||||
function TCustomNumEdit.GetIsNull: boolean;
|
||||
begin
|
||||
Result:=false;
|
||||
end;
|
||||
|
||||
function TCustomNumEdit.GetDisplayText: string;
|
||||
begin
|
||||
Result := FormatDisplayText(FValue);
|
||||
Result := FormatDisplayText(Value);
|
||||
end;
|
||||
|
||||
procedure TCustomNumEdit.Reset;
|
||||
|
Loading…
Reference in New Issue
Block a user