Skip to content

Commit 6080c23

Browse files
committed
Adding TCustomNumberColumn wrapper
1 parent 533fece commit 6080c23

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

Source/fmx/WrapFmxGrids.pas

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,16 @@ TPyDelphiImageColumn = class(TPyDelphiColumn)
106106
property DelphiObject: TImageColumn read GetDelphiObject write SetDelphiObject;
107107
end;
108108

109+
TPyDelphiCustomNumberColumn = class(TPyDelphiColumn)
110+
private
111+
function GetDelphiObject: TCustomNumberColumn;
112+
procedure SetDelphiObject(const Value: TCustomNumberColumn);
113+
public
114+
class function DelphiObjectClass : TClass; override;
115+
// Properties
116+
property DelphiObject: TCustomNumberColumn read GetDelphiObject write SetDelphiObject;
117+
end;
118+
109119
implementation
110120

111121
uses
@@ -146,6 +156,7 @@ procedure TGridsRegistration.RegisterWrappers(
146156
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiDateColumn);
147157
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiPopupColumn);
148158
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiImageColumn);
159+
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiCustomNumberColumn);
149160
end;
150161

151162
{ TPyDelphiColumn }
@@ -319,6 +330,24 @@ procedure TPyDelphiImageColumn.SetDelphiObject(const Value: TImageColumn);
319330
inherited DelphiObject := Value;
320331
end;
321332

333+
{ TPyDelphiCustomNumberColumn }
334+
335+
class function TPyDelphiCustomNumberColumn.DelphiObjectClass: TClass;
336+
begin
337+
Result := TCustomNumberColumn;
338+
end;
339+
340+
function TPyDelphiCustomNumberColumn.GetDelphiObject: TCustomNumberColumn;
341+
begin
342+
Result := TCustomNumberColumn(inherited DelphiObject);
343+
end;
344+
345+
procedure TPyDelphiCustomNumberColumn.SetDelphiObject(
346+
const Value: TCustomNumberColumn);
347+
begin
348+
inherited DelphiObject := Value;
349+
end;
350+
322351
initialization
323352
RegisteredUnits.Add(TGridsRegistration.Create);
324353

0 commit comments

Comments
 (0)