-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathTSAVEDIA.INC
59 lines (48 loc) · 1.73 KB
/
TSAVEDIA.INC
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
{ Copyright 2015 Jerome Shidel }
(*
This project and related files are subject to either the terms
specified in the included LICENSE.TXT file or the GNU GPLv2.0.
*)
{ ---TSaveDialog --- }
{$IFDEF INTERFACE}
const
class_TSaveDialog = 'TSaveDialog';
type
PSaveDialog = ^TSaveDialog;
TSaveDialog = object (TFileDialog)
public { protected }
function ObjectClass ( AName : String ) : String; virtual;
public
constructor Create(AParent : PControl; AName : String);
end;
{$ENDIF}
{$IFDEF IMPLEMENTATION}
{--- TSaveDialog --- }
function TSaveDialog.ObjectClass(AName : String) : String;
begin
if (AName = '') or (AName = class_TSaveDialog) then
ObjectClass := class_TSaveDialog
else
ObjectClass := inherited ObjectClass(AName);
end;
constructor TSaveDialog.Create;
begin
inherited Create(AParent, AName);
SetTitle('Save File As');
FMustExist := False;
FBOK.SetCaption('Save As');
SetHelpText('This is a standard "Save File As" dialog box.');
AddHelpText('');
AddHelpText('You may use the dropdown path list to select one of the systems current');
AddHelpText('active directories. Or, you may type in one for direct access. Also,' );
AddHelpText('recently entered paths are stored into the list for quick selection.');
AddHelpText('');
AddHelpText('When a specified directory does not exist, the Make Dir button will' );
AddHelpText('become available. ' );
AddHelpText('');
AddHelpText('The filter list can be used filter the directory listings by file types.' );
AddHelpText('They will be sorted in the order listed. Also, if a filename is entered manually' );
AddHelpText('that contains wildcards, it will be added as a user filter.');
AddHelpText('');
end;
{$ENDIF}