You've already forked lazarus-ccr
Added: TJLabeledFloatEdit property CurrentValue
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2528 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -5,7 +5,7 @@ Note: Lazarus Trunk required
|
|||||||
|
|
||||||
Version pre-1.1
|
Version pre-1.1
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
2012-09-20 Added: TJLabeledIntegerEdit property CurrentValue
|
2012-09-20 Added: TJLabeledIntegerEdit and TJLabeledFloatEdit property CurrentValue
|
||||||
2012-06-12 Fixed: TJDbGridTimeCtrl, store time value
|
2012-06-12 Fixed: TJDbGridTimeCtrl, store time value
|
||||||
2012-03-14 Fixed: Prevent double updates (QT widgetset) in edit widgets
|
2012-03-14 Fixed: Prevent double updates (QT widgetset) in edit widgets
|
||||||
2012-03-06 Fixed: Focus issues
|
2012-03-06 Fixed: Focus issues
|
||||||
|
@ -38,6 +38,7 @@ type
|
|||||||
function getDecimals: integer;
|
function getDecimals: integer;
|
||||||
function getFormat: string;
|
function getFormat: string;
|
||||||
function getValue: double;
|
function getValue: double;
|
||||||
|
function getCurrentValue: double;
|
||||||
procedure formatInput;
|
procedure formatInput;
|
||||||
procedure setDecimals(const AValue: integer);
|
procedure setDecimals(const AValue: integer);
|
||||||
procedure setFormat(const AValue: string);
|
procedure setFormat(const AValue: string);
|
||||||
@ -53,6 +54,7 @@ type
|
|||||||
{ Public declarations }
|
{ Public declarations }
|
||||||
constructor Create(TheOwner: TComponent); override;
|
constructor Create(TheOwner: TComponent); override;
|
||||||
destructor Destroy; override;
|
destructor Destroy; override;
|
||||||
|
property CurrentValue: double read getCurrentValue;
|
||||||
published
|
published
|
||||||
{ Published declarations }
|
{ Published declarations }
|
||||||
property DisplayFormat: string read getFormat write setFormat;
|
property DisplayFormat: string read getFormat write setFormat;
|
||||||
@ -135,6 +137,11 @@ begin
|
|||||||
Result := theValue;
|
Result := theValue;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
function TJLabeledFloatEdit.getCurrentValue: double;
|
||||||
|
begin
|
||||||
|
Result:= StrToFloatDef(Text, Value);
|
||||||
|
end;
|
||||||
|
|
||||||
procedure TJLabeledFloatEdit.formatInput;
|
procedure TJLabeledFloatEdit.formatInput;
|
||||||
begin
|
begin
|
||||||
Caption := FormatFloat(DisplayFormat, theValue);
|
Caption := FormatFloat(DisplayFormat, theValue);
|
||||||
|
Reference in New Issue
Block a user