@@ -156,7 +156,7 @@   TPyDelphiGlyphColumn = class(TPyDelphiColumn)
156156    property  DelphiObject: TGlyphColumn read GetDelphiObject write SetDelphiObject;
157157  end ;
158158
159-   TPyDelphiGlyphCustomGrid  = class (TPyDelphiCustomPresentedScrollBox)
159+   TPyDelphiCustomGrid  = class (TPyDelphiCustomPresentedScrollBox)
160160  private 
161161    function   GetDelphiObject : TCustomGrid;
162162    procedure  SetDelphiObject (const  Value : TCustomGrid);
@@ -166,6 +166,16 @@   TPyDelphiGlyphCustomGrid = class(TPyDelphiCustomPresentedScrollBox)
166166    property  DelphiObject: TCustomGrid read GetDelphiObject write SetDelphiObject;
167167  end ;
168168
169+   TPyDelphiGrid = class (TPyDelphiCustomGrid)
170+   private 
171+     function  GetDelphiObject : TGrid;
172+     procedure  SetDelphiObject (const  Value : TGrid);
173+   public 
174+     class  function   DelphiObjectClass  : TClass; override;
175+     //  Properties
176+     property  DelphiObject: TGrid read GetDelphiObject write SetDelphiObject;
177+   end ;
178+ 
169179implementation 
170180
171181uses 
@@ -211,7 +221,8 @@ procedure TGridsRegistration.RegisterWrappers(
211221  APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiFloatColumn);
212222  APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiIntegerColumn);
213223  APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiGlyphColumn);
214-   APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiGlyphCustomGrid);
224+   APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiCustomGrid);
225+   APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiGrid);
215226end ;
216227
217228{  TPyDelphiColumn } 
@@ -473,17 +484,34 @@ procedure TPyDelphiGlyphColumn.SetDelphiObject(const Value: TGlyphColumn);
473484
474485{  TPyDelphiGlyphCustomGrid } 
475486
476- class  function  TPyDelphiGlyphCustomGrid .DelphiObjectClass
487+ class  function  TPyDelphiCustomGrid .DelphiObjectClass
477488begin 
478489  Result := TCustomGrid;
479490end ;
480491
481- function  TPyDelphiGlyphCustomGrid .GetDelphiObject
492+ function  TPyDelphiCustomGrid .GetDelphiObject
482493begin 
483494  Result := TCustomGrid(inherited  DelphiObject);
484495end ;
485496
486- procedure  TPyDelphiGlyphCustomGrid.SetDelphiObject (const  Value : TCustomGrid);
497+ procedure  TPyDelphiCustomGrid.SetDelphiObject (const  Value : TCustomGrid);
498+ begin 
499+   inherited  DelphiObject := Value ;
500+ end ;
501+ 
502+ {  TPyDelphiGrid } 
503+ 
504+ class  function  TPyDelphiGrid.DelphiObjectClass : TClass;
505+ begin 
506+   Result := TGrid;
507+ end ;
508+ 
509+ function  TPyDelphiGrid.GetDelphiObject : TGrid;
510+ begin 
511+   Result := TGrid(inherited  DelphiObject);
512+ end ;
513+ 
514+ procedure  TPyDelphiGrid.SetDelphiObject (const  Value : TGrid);
487515begin 
488516  inherited  DelphiObject := Value ;
489517end ;
0 commit comments