Article View: borland.public.cppbuilder.nativeapi
Article #3876A directory and TOpenDialog
From: Jos�
Date: Mon, 24 Apr 2006 08:39
Date: Mon, 24 Apr 2006 08:39
22 lines
1570 bytes
1570 bytes
I have two problems. Problem 1. I want the user to select a directory (AKA folder), not a file. I can do this with TOpenDialog. Actually this dialog serves to select a file, but when I strip the last part from OpenDialog->FileName, the directory remains. I do not really like this method, since it confuses the user. Furthermore it is impossible to select an empty directory. Any solutions? Problem 2. The user runs my program and selects a directory with TOpenDialog. He closes the program, reboots the computer and restarts the program. 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. Where is this data stored? Can I access this data without having the user start TOpenDialog? -- Jos�
Technical Details
Message-ID:
<u53p425kmdqm4aa0h21pl45m559jhlma9k@4ax.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,26b22a9f81e2e376,start X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII From: Jos� <jose@127.0.0.1> Newsgroups: borland.public.cppbuilder.nativeapi Subject: A directory and TOpenDialog Date: Mon, 24 Apr 2006 10:39:39 +0200 Message-ID: <u53p425kmdqm4aa0h21pl45m559jhlma9k@4ax.com> X-Newsreader: Forte Agent 3.3/32.846 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit NNTP-Posting-Host: 82.75.14.62 X-Trace: newsgroups.borland.com 1145868014 82.75.14.62 (24 Apr 2006 01:40:14 -0700) Lines: 22 Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail