How can I use TTreeView to not only display a directory structure like Explorer does, but also I wan't to be able to specify a root folder.

I've got a component that displays directory structures, but it doesn't allow me to specify a root.
The component is TDirTree.

Please Help.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

go here:

select "my betas"

and get the System Control Pack ,
to install it in delphi ,unzip the files and in delphi select component install ,browse and select systemcontrolpackreg.pas ,
type a name for package ,click ok.
with the treeview you can select one of the shellfolders (control panel ,favorites etc)as root or make a ffcustom root folder to have as root.

Regards Barry

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
hagurAuthor Commented:
Sounds good,  I'm going to check it out!
If everything goes well, I'm going to accept your answer then.

- Hagur
hagurAuthor Commented:
I have a problem,  When I try to install the components, I get this error message:
Fatal error: (0): Required package ree.dpk not found.
mmm.. strange i just installed about 10 mins before typing them here and went fine.there is no unit in these that uses a ree.dpk so all i can suggest is to try again using a different name for your package than you usd last time.
have you ever saved a package as ree.dpk?
you could try removing units from the install unit until the error goes away.

open the package you made when installing and check but it should only contain systemcontrolreg.pas and may requires browser.dcp and vcl40.dcp.

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.