Discussion:
Common directory selection dialog?
(too old to reply)
Jason Cipriani
2008-07-02 20:45:48 UTC
Permalink
Is there a VCL component that wraps SHBrowseForFolder and shows the common
directory selection dialog? I'm kind of sick of copying + pasting my
directory selection code from program to program. It would be nice to be
able to just drag a component onto a form.

Thanks,
Jason
Remy Lebeau (TeamB)
2008-07-03 00:34:18 UTC
Permalink
Post by Jason Cipriani
Is there a VCL component that wraps SHBrowseForFolder
The VCL has an overloaded version of the SelectDirectory() function for
that.


Gambit
Jason Cipriani
2008-07-03 02:05:23 UTC
Permalink
Post by Remy Lebeau (TeamB)
Post by Jason Cipriani
Is there a VCL component that wraps SHBrowseForFolder
The VCL has an overloaded version of the SelectDirectory() function for
that.
Guess that has to be good enough! Thanks.

Jason
Mike Ruskai
2008-07-03 23:54:43 UTC
Permalink
On or about Wed, 2 Jul 2008 22:05:23 -0400 did "Jason Cipriani"
Post by Jason Cipriani
Post by Remy Lebeau (TeamB)
Post by Jason Cipriani
Is there a VCL component that wraps SHBrowseForFolder
The VCL has an overloaded version of the SelectDirectory() function for
that.
Guess that has to be good enough! Thanks.
It's not. You can't specify the window parent, so if it's called from a
secondary form, the application's main form is brought to focus before the
dialog is displayed.

Best to make your own wrapper and stick it in a unit you can add to any
project.

Loading...