Ticket #76 (closed defect)
wxDirDialog - setting the default path
| Reported by: | glarysandstorm | Owned by: | vadz |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | wxMSW | Version: | |
| Keywords: | Cc: | glarysandstorm, vadz | |
| Blocked By: | Patch: | no | |
| Blocking: |
Description
Actually, I'm using wxPython but, since wxDirDialog is just a wrapper around wxWindows, Robin Dunn suggested I could report this here.
I'm having trouble setting the default path for a wxDirdialog under windows NT. If I set the default path to any place under my desktop, it just opens up at the directory just above my desktop.
So if the default path is
"d:\gary\desktop\files\project1"
it just opens up at
"d:\gary\".
If I set the default path to any other place not under
my desktop it works fine. The default path set to "d:\files\work\stuff"
is no problem.
If the desktop location looks odd, its because I've relocated my user profile per instructions from microsoft. I've tried this on some computers at work where the user profile is in the normal place. That has no affect.
I don't have this problem at all with a wxFileDialog though. Any default path will work just fine. Although another wxPython user reported that he does have the same problem with wxFileDialog.
I'm using NT 4.0 sp5, the other user is on Win2K.
I know that part of the problem may be windows - i.e. windows "re-arranges'" the "aparant" location of the user's desktop to it make appear be at the top of the tree structure that it displays in explorer. So d:\gary\desktop doesn't appear to exist - explorer doesn't even show
a desktop folder under d:\gary - but it is there. The desktop folder is just displayed at the top of the tree structure shown in the tree pane or dropdown. But if you open a command prompt and type "cd d:\gary\desktop" that works just fine, so I know you can go there (plus the wxFileDialog works fine).
Question is - is there anything that can be done to make the wxDirDialog / wxFileDialog navigate properly to default paths which are under a user's dekstop?
( I don't use wxWindows directly so I state the wxPython equivelants of things. According to Robin, wxDirDialog is a wrapper around the SHBrowseForFolder API. Hope that is not too confusing. )
thanks
