in reply to Re: BrowseForFolder usage
in thread BrowseForFolder usage

Thanks for the response, but I don't think I made myself very clear. This is going to be a GUI app, and it will have a box for specifying the starting directory. If, for example, someone wishes to run this app only in two specific directories:

c:\MP3s\Comedy

c:\MP3s\Oldies

If I were to use root, having descended into Comedy, I would not be able to change to Oldies.

Does anyone know if there is a way of specifying a folder without rooting to it...

Replies are listed 'Best First'.
Re: Re: Re: BrowseForFolder usage
by tachyon (Chancellor) on Jun 01, 2004 at 00:16 UTC

    Get a grip. I have shown you how to use the browse for folder widget and make another widget based on the selection. This is proof of concept not finished product. That's your job. I take it you understand how to embed widgets in widgets. Decide how you want it to work. Make a main window that supplies all the functionality you want. FWIW I would suggest Tk as it is much better documented and you will find ready made widgets quite like what you want. There are a number of GUI packages you can use, have a look and pick one that works for you.

    cheers

    tachyon

      Get a grip!??!?

      This seems a little harsh. I thought I was asking a reasonable question. My question was whether or not you could make the Win32::GUI BrowseForFolder widget select a directory without rooting to it - it seems that the answer is no, but I just wanted to check before I went off to look at other options, as this seemed the easiest.

      Thank you very much for your initial response.

        A tree by definition has a root. If what you actually mean is can I root the tree on C:\ but have it pre-expanded to Folder X the answer is no, not with BrowseFolder. If you want to do native Windows with a poorly documented API then you are going to get very familiar with MSDN. 20 seconds on google will turn up links like: BrowseForFolder If the native API call does not do it no wrapper method is going to help.

        cheers

        tachyon