Skip to content

Commit 533fece

Browse files
committed
Adding TImageColumn wrapper
1 parent 422e37b commit 533fece

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
@@ -96,6 +96,16 @@ TPyDelphiPopupColumn = class(TPyDelphiColumn)
9696
property DelphiObject: TPopupColumn read GetDelphiObject write SetDelphiObject;
9797
end;
9898

99+
TPyDelphiImageColumn = class(TPyDelphiColumn)
100+
private
101+
function GetDelphiObject: TImageColumn;
102+
procedure SetDelphiObject(const Value: TImageColumn);
103+
public
104+
class function DelphiObjectClass : TClass; override;
105+
// Properties
106+
property DelphiObject: TImageColumn read GetDelphiObject write SetDelphiObject;
107+
end;
108+
99109
implementation
100110

101111
uses
@@ -135,6 +145,7 @@ procedure TGridsRegistration.RegisterWrappers(
135145
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiTimeColumn);
136146
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiDateColumn);
137147
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiPopupColumn);
148+
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiImageColumn);
138149
end;
139150

140151
{ TPyDelphiColumn }
@@ -291,6 +302,23 @@ procedure TPyDelphiPopupColumn.SetDelphiObject(const Value: TPopupColumn);
291302
inherited DelphiObject := Value;
292303
end;
293304

305+
{ TPyDelphiImageColumn }
306+
307+
class function TPyDelphiImageColumn.DelphiObjectClass: TClass;
308+
begin
309+
Result := TImageColumn;
310+
end;
311+
312+
function TPyDelphiImageColumn.GetDelphiObject: TImageColumn;
313+
begin
314+
Result := TImageColumn(inherited DelphiObject);
315+
end;
316+
317+
procedure TPyDelphiImageColumn.SetDelphiObject(const Value: TImageColumn);
318+
begin
319+
inherited DelphiObject := Value;
320+
end;
321+
294322
initialization
295323
RegisteredUnits.Add(TGridsRegistration.Create);
296324

0 commit comments

Comments
 (0)