🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: A directory and TOpenDialog

#3878
From: Hans Galema
Date: Mon, 24 Apr 2006 08:59
17 lines
1421 bytes
Jos� wrote:

> I want the user to select a directory (AKA folder), not a file. 

Have a look at SelectDirectory() or SHBrowseForFolder().

> When he starts TOpenDialog, I see that it has remembered the
> directory, although I wrote no code to remember it.
> OpenDialog->FileName is empty before TOpenDialog is started.

That is due to the OS. XP will do that. Win96SE not.

> Where is this data stored?

Don't know.

Hans.
Technical Details
Message-ID: <444c9461$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!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
Date: Mon, 24 Apr 2006 10:59:23 +0200
From: Hans Galema <notused@notused.nl>
User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: A directory and TOpenDialog
References: <u53p425kmdqm4aa0h21pl45m559jhlma9k@4ax.com>
In-Reply-To: <u53p425kmdqm4aa0h21pl45m559jhlma9k@4ax.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
NNTP-Posting-Host: 145.98.201.248
Message-ID: <444c9461$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1145869409 145.98.201.248 (24 Apr 2006 02:03:29 -0700)
Lines: 17
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail