Re: Select Directory Dialog?



jodleren wrote:

I was searching for this on the net and here.

All I need is a dialog, where I can pass a default seletion to it, and
get the result when OK is clicked.

The SelectDirectory is not suitable, as one shows a list of files to
etc... another does not get the default directory.
There are some components which can select a directory, but I need some
way to select a drive too.
I found some examples using SHBrowseForFolder, but still nothing which
does what I need.
- and I dont believe that I am the only one looking for this.

mystring := 'c:\someplace'; // default
if ok_clicked then
  mystring = selected place...

The best I can think of is the DFS components.

Sonnich

send me an EMail, i have a hacked unit i use called
WinShell
  it has code in to that uses the SHbrowseforfolder
that addes an EDIT line on the form to suggest a
path that is manually edit able!, you maybe able
to look at the code and add some other functionality
that you need.


-- Real Programmers Do things like this. http://webpages.charter.net/jamie_5

.



Relevant Pages

  • Re: quick question on folder browsing
    ... "Bruce Roberts" wrote in message ... <SelectDirectory> ... >> gave the old style dialog with a file list, directory outline, and ... We changed to ShBrowseForFolder right quick. ...
    (alt.comp.lang.borland-delphi)
  • Select Directory Dialog?
    ... I was searching for this on the net and here. ... All I need is a dialog, where I can pass a default seletion to it, and ... The SelectDirectory is not suitable, as one shows a list of files to ... The best I can think of is the DFS components. ...
    (comp.lang.pascal.delphi.misc)
  • Re: Select directory
    ... > I'd suggest using ShBrowseForFolder - I've just put a Delphi wrapper for ... SelectDirectory is good, but not perfect. ...
    (alt.comp.lang.borland-delphi)