[DUG] Directory Dialog

Jeremy North jeremy.north at gmail.com
Wed Sep 5 10:20:37 NZST 2007


There is also an overloaded version that uses the new UI. New UI as in
Windows 2000 I think.

On 9/5/07, Steve Peacocke <steve.peacocke at gmail.com> wrote:
> Someone here (Rohit?) was grumbling (sorry, "explaining") that Delphi
> 2007 doesn't have a Dialog for selecting a directory.
>
> I found one this morning. Use FileCtrl in your uses clause and state...
>
>    if SelectDirectory('Select a directory', 'C:\', Dir) then
>        ShowMessage('Directory = ' + Dir);
>
> Voila. A directory selection dialog.
>
> Steve
>
> --
> Steve Peacocke
> http://stevepeacocke.blogspot.com/
> _______________________________________________
> NZ Borland Developers Group - Delphi mailing list
> Post: delphi at delphi.org.nz
> Admin: http://delphi.org.nz/mailman/listinfo/delphi
> Unsubscribe: send an email to delphi-request at delphi.org.nz with Subject: unsubscribe
>


More information about the Delphi mailing list