BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Vague problem with SelectDirectory

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> comp.lang.pascal.delphi.misc
View previous topic :: View next topic  
Author Message
KLinZ
Guest





PostPosted: Mon Dec 08, 2003 2:24 pm    Post subject: Vague problem with SelectDirectory Reply with quote



I've made a application for a customer which contains a settings form. The
problem is that the TEdit isn't updated after the selection of a
directory with the SelectDirectory dialog. The customer is the only one that
has the problem.

var
Dir: string;
begin
Dir := DatabaseE.Text;
if SelectDirectory(Dir, [sdAllowCreate, sdPerformCreate, sdPrompt],
ID_SETTINGSDATABASEDIR) then
DatabaseE.Text := Dir;
end;

- The readonly property of the TEdit is set to true.
- The value of DatabaseE.Text is initially populated with a valid (existing)
directory.

I've tested it on a few systems (win98/win2k/winxp) and everything worked
fine.


** Also posted at nldelphi.com forum

--
www.zenobits.com

Back to top
J French
Guest





PostPosted: Mon Dec 08, 2003 3:51 pm    Post subject: Re: Vague problem with SelectDirectory Reply with quote



On Mon, 8 Dec 2003 15:24:33 +0100, "KLinZ"
<klinz (AT) NOSPAMMERTSzenobits (DOT) com> wrote:

Quote:
I've made a application for a customer which contains a settings form. The
problem is that the TEdit isn't updated after the selection of a
directory with the SelectDirectory dialog. The customer is the only one that
has the problem.

var
Dir: string;
begin
Dir := DatabaseE.Text;
if SelectDirectory(Dir, [sdAllowCreate, sdPerformCreate, sdPrompt],
ID_SETTINGSDATABASEDIR) then
DatabaseE.Text := Dir;
end;

- The readonly property of the TEdit is set to true.
- The value of DatabaseE.Text is initially populated with a valid (existing)
directory.

Maybe ... just maybe SelectDirectory fails ...

Back to top
Mike Shkolnik
Guest





PostPosted: Mon Dec 08, 2003 9:17 pm    Post subject: Re: Vague problem with SelectDirectory Reply with quote



Use the next procedure instead SelectDirectory:
********************************
Delphi tip#157: select folder dialog
http://www.scalabium.com/faq/dct0157.htm
********************************

--
With best regards, Mike Shkolnik
E-mail: [email]mshkolnik (AT) scalabium (DOT) com[/email]
WEB: http://www.scalabium.com

"KLinZ" <klinz (AT) NOSPAMMERTSzenobits (DOT) com> wrote

Quote:
I've made a application for a customer which contains a settings form. The
problem is that the TEdit isn't updated after the selection of a
directory with the SelectDirectory dialog. The customer is the only one
that
has the problem.

var
Dir: string;
begin
Dir := DatabaseE.Text;
if SelectDirectory(Dir, [sdAllowCreate, sdPerformCreate, sdPrompt],
ID_SETTINGSDATABASEDIR) then
DatabaseE.Text := Dir;
end;

- The readonly property of the TEdit is set to true.
- The value of DatabaseE.Text is initially populated with a valid
(existing)
directory.

I've tested it on a few systems (win98/win2k/winxp) and everything worked
fine.


** Also posted at nldelphi.com forum

--
www.zenobits.com




Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> comp.lang.pascal.delphi.misc All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.