🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #3880

Re: A directory and TOpenDialog

#3880
From: Minas EnRethy
Date: Mon, 24 Apr 2006 11:38
35 lines
1931 bytes
? "Jose" <jose@127.0.0.1> wrote :

> Problem 1.
> I want the user to select a directory (AKA folder), not a file.
> Any solutions?

Hi Jose,

1 . borland.public.cppbuilder.vcl.components.using
Date: Sun, 19 Feb 2006
Subject: TOpenDialog selecting directory

> Problem 2.
> When he starts TOpenDialog, I see that it has remembered the
> directory, although I wrote no code to remember it.

2. You can use InitiaDir property of  TOpenDialog or
set
ForceCurrentDirectory = true;
somewhere before call OpenDoalig->Execute()

if ForceCurrentDirectory is true, the dialog opens with the current working
directory displayed.

>
> Where is this data stored?
> Can I access this data without having the user start TOpenDialog?

In registry as Alan wrote

_Minas

------
"Only virtue's conquests have certainty" Sofokleous Erephyle 
Technical Details
Message-ID: <444cb8a7@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news4.google.com!news.glorb.com!news-out2.kabelfoon.nl!newsfeed.kabelfoon.nl!xindi.nntp.kabelfoon.nl!newsfeed.freenet.de!news.code-werk.net!open-news-network.org!news.soft-gems.net!reader.uucp.at!feeder02.uucp.at!newsfeed.uucp.at!news.uucp.at!newsgroups.borland.com!not-for-mail
References: <u53p425kmdqm4aa0h21pl45m559jhlma9k@4ax.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,26b22a9f81e2e376
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Minas EnRethy" <(min_charATyahooPUTADOTgr)(HellenicFire)>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <u53p425kmdqm4aa0h21pl45m559jhlma9k@4ax.com>
Subject: Re: A directory and TOpenDialog
Date: Mon, 24 Apr 2006 14:38:10 +0300
Lines: 37
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2869
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 193.92.235.150
Message-ID: <444cb8a7@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1145878695 193.92.235.150 (24 Apr 2006 04:38:15 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news4.google.com!news.glorb.com!news-out2.kabelfoon.nl!newsfeed.kabelfoon.nl!xindi.nntp.kabelfoon.nl!newsfeed.freenet.de!news.code-werk.net!open-news-network.org!news.soft-gems.net!reader.uucp.at!feeder02.uucp.at!newsfeed.uucp.at!news.uucp.at!newsgroups.borland.com!not-for-mail