File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,17 @@ TPyDelphiFileOpenDialog = class(TPyDelphiComponent)
45
45
write SetDelphiObject;
46
46
end ;
47
47
48
+ TPyDelphiSaveDialog = class (TPyDelphiOpenDialog)
49
+ private
50
+ function GetDelphiObject : TSaveDialog;
51
+ procedure SetDelphiObject (const Value : TSaveDialog);
52
+ public
53
+ class function DelphiObjectClass : TClass; override;
54
+ // Properties
55
+ property DelphiObject: TSaveDialog read GetDelphiObject
56
+ write SetDelphiObject;
57
+ end ;
58
+
48
59
implementation
49
60
50
61
uses
@@ -102,6 +113,7 @@ procedure TDialogRegistration.RegisterWrappers(APyDelphiWrapper
102
113
inherited ;
103
114
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiOpenDialog);
104
115
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiFileOpenDialog);
116
+ APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiSaveDialog);
105
117
end ;
106
118
107
119
{ TPyDelphiOpenDialog }
@@ -206,6 +218,23 @@ procedure TPyDelphiFileOpenDialog.SetDelphiObject(const Value: TFileOpenDialog);
206
218
inherited DelphiObject := Value ;
207
219
end ;
208
220
221
+ { TPyDelphiSaveDialog }
222
+
223
+ class function TPyDelphiSaveDialog.DelphiObjectClass : TClass;
224
+ begin
225
+ Result := TSaveDialog;
226
+ end ;
227
+
228
+ function TPyDelphiSaveDialog.GetDelphiObject : TSaveDialog;
229
+ begin
230
+ Result := TSaveDialog(inherited DelphiObject);
231
+ end ;
232
+
233
+ procedure TPyDelphiSaveDialog.SetDelphiObject (const Value : TSaveDialog);
234
+ begin
235
+ inherited DelphiObject := Value ;
236
+ end ;
237
+
209
238
initialization
210
239
RegisteredUnits.Add(TDialogRegistration.Create);
211
240
CoInitialize(nil );
You can’t perform that action at this time.
0 commit comments