@@ -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+
109119implementation
110120
111121uses
@@ -146,6 +156,7 @@ procedure TGridsRegistration.RegisterWrappers(
146156 APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiDateColumn);
147157 APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiPopupColumn);
148158 APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiImageColumn);
159+ APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiCustomNumberColumn);
149160end ;
150161
151162{ TPyDelphiColumn }
@@ -319,6 +330,24 @@ procedure TPyDelphiImageColumn.SetDelphiObject(const Value: TImageColumn);
319330 inherited DelphiObject := Value ;
320331end ;
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+
322351initialization
323352 RegisteredUnits.Add(TGridsRegistration.Create);
324353
0 commit comments