 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
KLinZ Guest
|
Posted: Mon Dec 08, 2003 2:24 pm Post subject: Vague problem with SelectDirectory |
|
|
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
|
Posted: Mon Dec 08, 2003 3:51 pm Post subject: Re: Vague problem with SelectDirectory |
|
|
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
|
Posted: Mon Dec 08, 2003 9:17 pm Post subject: Re: Vague problem with SelectDirectory |
|
|
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 |
|
 |
|
|
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
|
|