Skip to content

Commit 422e37b

Browse files
committed
Adding TPopupColumn wrapper
1 parent b5a9a76 commit 422e37b

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
@@ -86,6 +86,16 @@ TPyDelphiDateColumn = class(TPyDelphiDateTimeColumnBase)
8686
property DelphiObject: TDateColumn read GetDelphiObject write SetDelphiObject;
8787
end;
8888

89+
TPyDelphiPopupColumn = class(TPyDelphiColumn)
90+
private
91+
function GetDelphiObject: TPopupColumn;
92+
procedure SetDelphiObject(const Value: TPopupColumn);
93+
public
94+
class function DelphiObjectClass : TClass; override;
95+
// Properties
96+
property DelphiObject: TPopupColumn read GetDelphiObject write SetDelphiObject;
97+
end;
98+
8999
implementation
90100

91101
uses
@@ -124,6 +134,7 @@ procedure TGridsRegistration.RegisterWrappers(
124134
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiDateTimeColumn);
125135
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiTimeColumn);
126136
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiDateColumn);
137+
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiPopupColumn);
127138
end;
128139

129140
{ TPyDelphiColumn }
@@ -263,6 +274,23 @@ procedure TPyDelphiDateColumn.SetDelphiObject(const Value: TDateColumn);
263274
inherited DelphiObject := Value;
264275
end;
265276

277+
{ TPyDelphiPopupColumn }
278+
279+
class function TPyDelphiPopupColumn.DelphiObjectClass: TClass;
280+
begin
281+
Result := TPopupColumn;
282+
end;
283+
284+
function TPyDelphiPopupColumn.GetDelphiObject: TPopupColumn;
285+
begin
286+
Result := TPopupColumn(inherited DelphiObject);
287+
end;
288+
289+
procedure TPyDelphiPopupColumn.SetDelphiObject(const Value: TPopupColumn);
290+
begin
291+
inherited DelphiObject := Value;
292+
end;
293+
266294
initialization
267295
RegisteredUnits.Add(TGridsRegistration.Create);
268296

0 commit comments

Comments
 (0)