Is it possible to make a filename non-editable using the Edit Box of the SaveDialog of Delphi7?

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)?

Answers


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.


Need Your Help

How to Add EventTrigger with SoundActions in code behind?

c# silverlight windows-phone-7

So I'm trying to create controls on the fly (RegularPolygon to be exact) and I want to add 2 PlaySoundActions to the controls as an EventTrigger based off of the Tap Event. Currently I have the

SQL fill days for dates not found in Database

sql sql-server-2008

I'm getting data from my function as follows:

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.