From: Simon Flack <sf@fl...> - 2003-10-08 11:08:19
On Wed, 8 Oct 2003 11:03:09 +0100, Steve wrote
> Is there any way to populate a TreeCtrl with the default windows
> file tree like the folder dialog. IE;
> +My Computer
> +My Documents
Yes, you can manually populate it. I've done it for a remote filesystem it's
not too difficult - you build a tree and add items for each folder/file. If
it's a large filesystem or remote, you'd probably want to build it on the
fly - i.e. add only add subfolders when the user expands that section of the
Thinking about it, a module to do this would go nicely alongside
But depending on your requirements, perhaps a standard function will do. For
example: Wx::DirSelector. Try this:
perl -MWx -e "print Wx::DirSelector('Select a folder')"
See Functions/Dialog functions in the wxWindows docs.
Get latest updates about Open Source Projects, Conferences and News.