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 @@ -76,6 +76,16 @@ TPyDelphiTimeColumn = class(TPyDelphiColumn)
76
76
property DelphiObject: TTimeColumn read GetDelphiObject write SetDelphiObject;
77
77
end ;
78
78
79
+ TPyDelphiDateColumn = class (TPyDelphiColumn)
80
+ private
81
+ function GetDelphiObject : TDateColumn;
82
+ procedure SetDelphiObject (const Value : TDateColumn);
83
+ public
84
+ class function DelphiObjectClass : TClass; override;
85
+ // Properties
86
+ property DelphiObject: TDateColumn read GetDelphiObject write SetDelphiObject;
87
+ end ;
88
+
79
89
implementation
80
90
81
91
uses
@@ -113,6 +123,7 @@ procedure TGridsRegistration.RegisterWrappers(
113
123
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiDateTimeColumnBase);
114
124
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiDateTimeColumn);
115
125
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiTimeColumn);
126
+ APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiDateColumn);
116
127
end ;
117
128
118
129
{ TPyDelphiColumn }
@@ -235,6 +246,23 @@ procedure TPyDelphiTimeColumn.SetDelphiObject(const Value: TTimeColumn);
235
246
inherited DelphiObject := Value ;
236
247
end ;
237
248
249
+ { TPyDelphiDateColumn }
250
+
251
+ class function TPyDelphiDateColumn.DelphiObjectClass : TClass;
252
+ begin
253
+ Result := TDateColumn;
254
+ end ;
255
+
256
+ function TPyDelphiDateColumn.GetDelphiObject : TDateColumn;
257
+ begin
258
+ Result := TDateColumn(inherited DelphiObject);
259
+ end ;
260
+
261
+ procedure TPyDelphiDateColumn.SetDelphiObject (const Value : TDateColumn);
262
+ begin
263
+ inherited DelphiObject := Value ;
264
+ end ;
265
+
238
266
initialization
239
267
RegisteredUnits.Add(TGridsRegistration.Create);
240
268
You can’t perform that action at this time.
0 commit comments