Skip to content

Commit f092620

Browse files
committed
Addint TCurrencyColumn wrapper
1 parent 6080c23 commit f092620

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

Source/fmx/WrapFmxGrids.pas

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,16 @@ TPyDelphiCustomNumberColumn = class(TPyDelphiColumn)
116116
property DelphiObject: TCustomNumberColumn read GetDelphiObject write SetDelphiObject;
117117
end;
118118

119+
TPyDelphiCurrencyColumn = class(TPyDelphiCustomNumberColumn)
120+
private
121+
function GetDelphiObject: TCurrencyColumn;
122+
procedure SetDelphiObject(const Value: TCurrencyColumn);
123+
public
124+
class function DelphiObjectClass : TClass; override;
125+
// Properties
126+
property DelphiObject: TCurrencyColumn read GetDelphiObject write SetDelphiObject;
127+
end;
128+
119129
implementation
120130

121131
uses
@@ -157,6 +167,7 @@ procedure TGridsRegistration.RegisterWrappers(
157167
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiPopupColumn);
158168
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiImageColumn);
159169
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiCustomNumberColumn);
170+
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiCurrencyColumn);
160171
end;
161172

162173
{ TPyDelphiColumn }
@@ -348,6 +359,23 @@ procedure TPyDelphiCustomNumberColumn.SetDelphiObject(
348359
inherited DelphiObject := Value;
349360
end;
350361

362+
{ TPyDelphiCurrencyColumn }
363+
364+
class function TPyDelphiCurrencyColumn.DelphiObjectClass: TClass;
365+
begin
366+
Result := TCurrencyColumn;
367+
end;
368+
369+
function TPyDelphiCurrencyColumn.GetDelphiObject: TCurrencyColumn;
370+
begin
371+
Result := TCurrencyColumn(inherited DelphiObject);
372+
end;
373+
374+
procedure TPyDelphiCurrencyColumn.SetDelphiObject(const Value: TCurrencyColumn);
375+
begin
376+
inherited DelphiObject := Value;
377+
end;
378+
351379
initialization
352380
RegisteredUnits.Add(TGridsRegistration.Create);
353381

0 commit comments

Comments
 (0)