Skip to content

Commit 5a0c110

Browse files
committed
Adding TCheckColumn wrapper
1 parent 88b1f7a commit 5a0c110

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

Source/fmx/WrapFmxGrids.pas

+28
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,16 @@ TPyDelphiProgressColumn = class(TPyDelphiColumn)
3636
property DelphiObject: TProgressColumn read GetDelphiObject write SetDelphiObject;
3737
end;
3838

39+
TPyDelphiCheckColumn = class(TPyDelphiColumn)
40+
private
41+
function GetDelphiObject: TCheckColumn;
42+
procedure SetDelphiObject(const Value: TCheckColumn);
43+
public
44+
class function DelphiObjectClass : TClass; override;
45+
// Properties
46+
property DelphiObject: TCheckColumn read GetDelphiObject write SetDelphiObject;
47+
end;
48+
3949
implementation
4050

4151
uses
@@ -69,6 +79,7 @@ procedure TGridsRegistration.RegisterWrappers(
6979
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiColumn);
7080
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiStringColumn);
7181
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiProgressColumn);
82+
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiCheckColumn);
7283
end;
7384

7485
{ TPyDelphiColumn }
@@ -122,6 +133,23 @@ procedure TPyDelphiProgressColumn.SetDelphiObject(const Value: TProgressColumn);
122133
inherited DelphiObject := Value;
123134
end;
124135

136+
{ TPyDelphiCheckColumn }
137+
138+
class function TPyDelphiCheckColumn.DelphiObjectClass: TClass;
139+
begin
140+
Result := TCheckColumn;
141+
end;
142+
143+
function TPyDelphiCheckColumn.GetDelphiObject: TCheckColumn;
144+
begin
145+
Result := TCheckColumn(inherited DelphiObject);
146+
end;
147+
148+
procedure TPyDelphiCheckColumn.SetDelphiObject(const Value: TCheckColumn);
149+
begin
150+
inherited DelphiObject := Value;
151+
end;
152+
125153
initialization
126154
RegisteredUnits.Add(TGridsRegistration.Create);
127155

0 commit comments

Comments
 (0)