Article View: borland.public.cppbuilder.nativeapi
Article #850Re: OpenDialogBox and Inital Dir
From: Wookie
Date: Fri, 07 Dec 2007 17:05
Date: Fri, 07 Dec 2007 17:05
32 lines
1610 bytes
1610 bytes
Hi Asger,
Thanks for your help; it works as it should !
Asger Joergensen wrote:
> Hi Christophe
>
> Christophe MINETTI says:
> > Hi,
> >
> > I would like to tell an OpenDialogBox in which directory it must be
> > opened. For this, I use InitialDir which works fine the first time but
> > then if I change the InitalDir value with another path, it does not take
> > it into account. Is there any way to overcome this ?
>
> Do You mean TOpenDialog ?
>
> This might help:
>
> TOpenDialog *OpenDialog = new TOpenDialog(NULL);
> OpenDialog->InitialDir = "ThePath";
> if(OpenDialog->Execute())
> {
> // do stuff
> }
> delete OpenDialog;
>
> This way You have a new one every time.
>
> Kind regards
> Asger
Technical Details
Message-ID:
<47597D52.5759EB62@skynet.be>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<4759646C.A4CA4D26@ulb.ac.be> <MPG.21c387f796b0a1ac989950@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,663e99632cbe46da X-Google-Attributes: gid10cc67,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Message-ID: <47597D52.5759EB62@skynet.be> Date: Fri, 07 Dec 2007 18:05:22 +0100 From: Wookie <fa067235@skynet.be> X-Mailer: Mozilla 4.74 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: OpenDialogBox and Inital Dir References: <4759646C.A4CA4D26@ulb.ac.be> <MPG.21c387f796b0a1ac989950@newsgroups.borland.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 212.71.5.130 X-Trace: newsgroups.borland.com 1197047106 212.71.5.130 (7 Dec 2007 09:05:06 -0700) Lines: 33 Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail