File tree 1 file changed +28
-0
lines changed
1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,16 @@ TPyDelphiColumn = class(TPyDelphiControl)
16
16
property DelphiObject: TColumn read GetDelphiObject write SetDelphiObject;
17
17
end ;
18
18
19
+ TPyDelphiStringColumn = class (TPyDelphiColumn)
20
+ private
21
+ function GetDelphiObject : TStringColumn;
22
+ procedure SetDelphiObject (const Value : TStringColumn);
23
+ public
24
+ class function DelphiObjectClass : TClass; override;
25
+ // Properties
26
+ property DelphiObject: TStringColumn read GetDelphiObject write SetDelphiObject;
27
+ end ;
28
+
19
29
implementation
20
30
21
31
uses
@@ -47,6 +57,7 @@ procedure TGridsRegistration.RegisterWrappers(
47
57
begin
48
58
inherited ;
49
59
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiColumn);
60
+ APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiStringColumn);
50
61
end ;
51
62
52
63
{ TPyDelphiColumn }
@@ -66,6 +77,23 @@ procedure TPyDelphiColumn.SetDelphiObject(const Value: TColumn);
66
77
inherited DelphiObject := Value ;
67
78
end ;
68
79
80
+ { TPyDelphiStringColumn }
81
+
82
+ class function TPyDelphiStringColumn.DelphiObjectClass : TClass;
83
+ begin
84
+ Result := TStringColumn;
85
+ end ;
86
+
87
+ function TPyDelphiStringColumn.GetDelphiObject : TStringColumn;
88
+ begin
89
+ Result := TStringColumn(inherited DelphiObject);
90
+ end ;
91
+
92
+ procedure TPyDelphiStringColumn.SetDelphiObject (const Value : TStringColumn);
93
+ begin
94
+ inherited DelphiObject := Value ;
95
+ end ;
96
+
69
97
initialization
70
98
RegisteredUnits.Add(TGridsRegistration.Create);
71
99
You can’t perform that action at this time.
0 commit comments