 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Finn Tolderlund Guest
|
Posted: Fri Jul 25, 2003 11:03 am Post subject: Re: SaveDialog default dir |
|
|
Windows is playing tricks on you.
If InitialDir is '' then it depends on the windows version what directory it
will show initially.
And some windows versions may remember the last directory used with the
dialog and show that again the next time you run the app.
At least that is my experience.
--
Finn Tolderlund
"Iain Macmillan" <help (AT) ariesps (DOT) co.uk> skrev i en meddelelse
news:3f210b08 (AT) newsgroups (DOT) borland.com...
| Quote: | I use SaveDialogs with InitialDir set to '', so it will start in the
current
working directory. The user can choose the default just by launching the
app
from a shortcut with the 'Start In' set to the directory they want to
use..
although recently I think some users have had problems with it defaulting
to
My Documents..
But I've just heard a new one: The Working Directory is most certainly the
apps own directory (other behaviour confirms this), the shortcut specifies
that directory as 'Start In'.
The first use of the SaveDialog shows 'Save In' as ..
DESKTOP
|
|
|
| Back to top |
|
 |
Finn Tolderlund Guest
|
Posted: Fri Jul 25, 2003 2:55 pm Post subject: Re: SaveDialog default dir |
|
|
Use the GetCurrentDir function when the app starts and use that value as
InitialDir.
Or better imho make a setting where you can specify the data dir and use
that. Then you do not have to rely on current directory.
--
Finn Tolderlund
"Iain Macmillan" <help (AT) ariesps (DOT) co.uk> skrev i en meddelelse
news:3f213605 (AT) newsgroups (DOT) borland.com...
| Quote: | Is there any *reliable* way of ensuring that the InitialDir gets set to
the
'Start In' directory of the shortcut?
I could default it to the App's directory easily enough, but some people
want to use somewhere else as default. - because they don't want data
files
stored in the program directory, and they know that users will usually
take
the first thing they are offered.
|
|
|
| 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
|
|