According to our requirements, we just want to enable the user to select a place to save a file and restrict the editing of its name.
Is it possible to that with inbuilt SaveDialog component of Delphi (7)?
According to our requirements, we just want to enable the user to select a place to save a file and restrict the editing of its name.
Is it possible to that with inbuilt SaveDialog component of Delphi (7)?
Yes, it is possible, but that isn't what you really want to do. What you want to do is not to select a file name, but to select a folder, and that is a different problem.
Using FileCtrl
,
var
dir: string;
begin
if SelectDirectory('Select Directory','', dir, [sdNewUI, sdNewFolder]) then
ShowMessage(dir);
On Vista+ you can also use the directory selection mode of the file dialog.