@@ -156,7 +156,7 @@ TPyDelphiGlyphColumn = class(TPyDelphiColumn)
156
156
property DelphiObject: TGlyphColumn read GetDelphiObject write SetDelphiObject;
157
157
end ;
158
158
159
- TPyDelphiGlyphCustomGrid = class (TPyDelphiCustomPresentedScrollBox)
159
+ TPyDelphiCustomGrid = class (TPyDelphiCustomPresentedScrollBox)
160
160
private
161
161
function GetDelphiObject : TCustomGrid;
162
162
procedure SetDelphiObject (const Value : TCustomGrid);
@@ -166,6 +166,16 @@ TPyDelphiGlyphCustomGrid = class(TPyDelphiCustomPresentedScrollBox)
166
166
property DelphiObject: TCustomGrid read GetDelphiObject write SetDelphiObject;
167
167
end ;
168
168
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
+
169
179
implementation
170
180
171
181
uses
@@ -211,7 +221,8 @@ procedure TGridsRegistration.RegisterWrappers(
211
221
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiFloatColumn);
212
222
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiIntegerColumn);
213
223
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiGlyphColumn);
214
- APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiGlyphCustomGrid);
224
+ APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiCustomGrid);
225
+ APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiGrid);
215
226
end ;
216
227
217
228
{ TPyDelphiColumn }
@@ -473,17 +484,34 @@ procedure TPyDelphiGlyphColumn.SetDelphiObject(const Value: TGlyphColumn);
473
484
474
485
{ TPyDelphiGlyphCustomGrid }
475
486
476
- class function TPyDelphiGlyphCustomGrid .DelphiObjectClass : TClass;
487
+ class function TPyDelphiCustomGrid .DelphiObjectClass : TClass;
477
488
begin
478
489
Result := TCustomGrid;
479
490
end ;
480
491
481
- function TPyDelphiGlyphCustomGrid .GetDelphiObject : TCustomGrid;
492
+ function TPyDelphiCustomGrid .GetDelphiObject : TCustomGrid;
482
493
begin
483
494
Result := TCustomGrid(inherited DelphiObject);
484
495
end ;
485
496
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);
487
515
begin
488
516
inherited DelphiObject := Value ;
489
517
end ;
0 commit comments