in reply to Re: Re: Re: BrowseForFolder usage
in thread BrowseForFolder usage

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.

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

    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

      Thank you!

      That is just the information that I was after. Sorry about the to-ing and fro-ing.

      I apologise for my incompetence on this issue: I have been programming (probably badly by modern standards, but as has been stated by better men than I: TMTOWTDI!) in perl for several years and this is my first foray into GUI.

      Having read a little about Tk, I believe you are right, and that that is a much better way to do it. Thanks for all your help

      Cheers

      HabitForming

        Tk is a better option IMHO. It tries for Win32 look and feel but they have done it the hard way ie rebuilt the Windows widget/icon set. There is much discussion about the pros and cons of this but the bottom line is that Tk does not always look as Windows like as you might want.

        Esseintially it sounds like you want to pack a folder view widget into your main Window. It can then be rooted on C or whatever but expansions will persist.

        I avoid GIUs like the plague as they can consume endless hours with tinkering to get the tabs to behave like you want, the buttons to look just so, etc, etc. I spend most of my time on the Linux command line now.

        cheers

        tachyon