File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -176,6 +176,16 @@ TPyDelphiGrid = class(TPyDelphiCustomGrid)
176176 property DelphiObject: TGrid read GetDelphiObject write SetDelphiObject;
177177 end ;
178178
179+ TPyDelphiStringGrid = class (TPyDelphiCustomGrid)
180+ private
181+ function GetDelphiObject : TStringGrid;
182+ procedure SetDelphiObject (const Value : TStringGrid);
183+ public
184+ class function DelphiObjectClass : TClass; override;
185+ // Properties
186+ property DelphiObject: TStringGrid read GetDelphiObject write SetDelphiObject;
187+ end ;
188+
179189implementation
180190
181191uses
@@ -223,6 +233,7 @@ procedure TGridsRegistration.RegisterWrappers(
223233 APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiGlyphColumn);
224234 APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiCustomGrid);
225235 APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiGrid);
236+ APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiStringGrid);
226237end ;
227238
228239{ TPyDelphiColumn }
@@ -516,6 +527,23 @@ procedure TPyDelphiGrid.SetDelphiObject(const Value: TGrid);
516527 inherited DelphiObject := Value ;
517528end ;
518529
530+ { TPyDelphiStringGrid }
531+
532+ class function TPyDelphiStringGrid.DelphiObjectClass : TClass;
533+ begin
534+ Result := TStringGrid;
535+ end ;
536+
537+ function TPyDelphiStringGrid.GetDelphiObject : TStringGrid;
538+ begin
539+ Result := TStringGrid(inherited DelphiObject);
540+ end ;
541+
542+ procedure TPyDelphiStringGrid.SetDelphiObject (const Value : TStringGrid);
543+ begin
544+ inherited DelphiObject := Value ;
545+ end ;
546+
519547initialization
520548 RegisteredUnits.Add(TGridsRegistration.Create);
521549
You can’t perform that action at this time.
0 commit comments