Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FAQ: Browse Directories and Files

Status
Not open for further replies.

Glenn9999

Programmer
Jun 19, 2004
2,312
US
I did another component that I'm sharing. It encapsulates most of the functionality I could find in SHBrowseForFolder.

As the note says on the FAQ, I don't have the resources (read access to a big network) to test a lot of it, so YMMV on that regard.

Please let me know if it helps you out, and especially if you do find something in using it that I didn't because I couldn't test it.

faq102-7233

I won't be able to get to any formal documentation in the next few days, so here's some basics outside of the example:

Code:
    FTitle: String;           // title or caption
    FDirName: String;         // path or dir returned
    FStartDir: TFileName;     // directory to start with

    FUserFlag: TBDirFlag;     // determines functionality
    FStartFlag: TBStartFlag;  // determines special start places
    FStatusMsg: Boolean;      // show status messages?
    FNewStyle: Boolean;       // use new display style?
    FCenter: Boolean;         // center the dialog?
    FFSAncestors: Boolean;    // allow only file system ancestors?
    FBelowDomain: Boolean;    // do not go below domain level in network browse?
    FRootDir: Boolean;        // truncate browse in root dir instead of simply select?

The UserFlag holds most of the main functionality. You tell it what you want to browse for, and it will limit the choices accordingly. The StartFlag is more for special cases, and the names for each should reasonably point towards them. The rest are documented in the code snippet above.

Hope it helps.

Measurement is not management.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top