Skip to content

Commit c442532

Browse files
committed
Adding TDateTimeColumn wrapper
1 parent f05a4dd commit c442532

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

Source/fmx/WrapFmxGrids.pas

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,16 @@ TPyDelphiDateTimeColumnBase = class(TPyDelphiColumn)
5656
property DelphiObject: TDateTimeColumnBase read GetDelphiObject write SetDelphiObject;
5757
end;
5858

59+
TPyDelphiDateTimeColumn = class(TPyDelphiColumn)
60+
private
61+
function GetDelphiObject: TDateTimeColumn;
62+
procedure SetDelphiObject(const Value: TDateTimeColumn);
63+
public
64+
class function DelphiObjectClass : TClass; override;
65+
// Properties
66+
property DelphiObject: TDateTimeColumn read GetDelphiObject write SetDelphiObject;
67+
end;
68+
5969
implementation
6070

6171
uses
@@ -91,6 +101,7 @@ procedure TGridsRegistration.RegisterWrappers(
91101
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiProgressColumn);
92102
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiCheckColumn);
93103
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiDateTimeColumnBase);
104+
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiDateTimeColumn);
94105
end;
95106

96107
{ TPyDelphiColumn }
@@ -179,6 +190,23 @@ procedure TPyDelphiDateTimeColumnBase.SetDelphiObject(
179190
inherited DelphiObject := Value;
180191
end;
181192

193+
{ TPyDelphiDateTimeColumn }
194+
195+
class function TPyDelphiDateTimeColumn.DelphiObjectClass: TClass;
196+
begin
197+
Result := TDateTimeColumn;
198+
end;
199+
200+
function TPyDelphiDateTimeColumn.GetDelphiObject: TDateTimeColumn;
201+
begin
202+
Result := TDateTimeColumn(inherited DelphiObject);
203+
end;
204+
205+
procedure TPyDelphiDateTimeColumn.SetDelphiObject(const Value: TDateTimeColumn);
206+
begin
207+
inherited DelphiObject := Value;
208+
end;
209+
182210
initialization
183211
RegisteredUnits.Add(TGridsRegistration.Create);
184212

0 commit comments

Comments
 (0)