wxDirDialog defaultPath

33 views
Skip to first unread message

Patrick Steele

unread,
Oct 25, 2012, 5:07:18 AM10/25/12
to wx-u...@googlegroups.com
wxWidgets = 2.9.3
OS = Windows 7
IDE = Visual Studio 2005

Hi,
I am making a subclass of wxDirDialog. I notice that if you pass it though a valid defaultPath value in its constructor, the subsequent dialog that appears will have the requested folder selected but if the directory is fairly well nested then you have to really scroll to find out just where that folder is ie it appears that the scrollbar always appears at the absolute top of all directories. Is there any way for me to not just highlight the defaultPath folder as it already does, but to also automatically scroll the directory list so that the selected folder can actually be seen on screen?
Thanks,
Patrick

Vadim Zeitlin

unread,
Oct 25, 2012, 6:43:16 AM10/25/12
to wx-u...@googlegroups.com
On Thu, 25 Oct 2012 10:07:18 +0100 Patrick Steele wrote:

PS> wxWidgets = 2.9.3
PS> OS = Windows 7
PS> IDE = Visual Studio 2005
PS>
PS> Hi,
PS> I am making a subclass of wxDirDialog. I notice that if you pass it though
PS> a valid defaultPath value in its constructor, the subsequent dialog that
PS> appears will have the requested folder selected but if the directory is
PS> fairly well nested then you have to really scroll to find out just where
PS> that folder is ie it appears that the scrollbar always appears at the
PS> absolute top of all directories. Is there any way for me to not just
PS> highlight the defaultPath folder as it already does, but to also
PS> automatically scroll the directory list so that the selected folder can
PS> actually be seen on screen?

Not in 2.9.3 but in 2.9.4 a completely different dialog is used so you
shouldn't have this problem any more.

Regards,
VZ

--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/

Patrick Steele

unread,
Oct 25, 2012, 7:14:25 AM10/25/12
to wx-u...@googlegroups.com
Ok thanks Vadim. I think I'll upgrade us when 2.9.5 come out. What's different about the new dialog?
Patrick

Vadim Zeitlin

unread,
Oct 25, 2012, 7:15:53 AM10/25/12
to wx-u...@googlegroups.com
On Thu, 25 Oct 2012 12:14:25 +0100 Patrick Steele wrote:

PS> Ok thanks Vadim. I think I'll upgrade us when 2.9.5 come out. What's
PS> different about the new dialog?

It's like wxFileDialog and not another completely different one, see #11401.

Patrick Steele

unread,
Oct 25, 2012, 7:17:40 AM10/25/12
to wx-u...@googlegroups.com
Oh cool, that sounds much better, thanks!
Reply all
Reply to author
Forward
0 new messages