ShellTreeView doesn't show root (like Delphi does), which makes root inaccessible
Original Reporter info from Mantis: Bart @flyingsheep
-
Reporter name: Bart Broersma
Original Reporter info from Mantis: Bart @flyingsheep
- Reporter name: Bart Broersma
Description:
When I have a TShellTreeView and set it's root to C:\ (on Windows obviously) then the tree looks something like
devel
Intel
Windows
(where > represents the glyph that can be clicked on to expand the node)
The problem is as follows.
When you connect a TShellListView to the ShellTreeView, then when you start the program (nothing is selected in the ShellTreeView) the ShellListView will display all files in the root of the ShellTreeView (as expected).
Now, as soon as the user selects any node in the ShellTreeView, it becomes impossible to get back to the root (as in: like it was when the program started up).
Basically, when I set root to C:\ I would expect the ShellTreeView to look something like:
C:\
>devel
>Intel
>Windows
(The look you get when you open a TSelectDirectoryDlg)
Steps to reproduce:
Build and run attached demo project.
Click on Button1 (this will set the root of the ShellTreeView to whatever is in the Edit1 control, by default C:)
You will see the files that reside on C:\ in the ShellListView on the right
(see shelltreeview_lazarus01.png)
Now click on any node in the ShellTreeView, it'll look like shelltreeview_lazarus02.png, and from that situation it is impossible to get back to the situation as in shelltreeview_lazarus01.png.
The file shelltreeview_delphi shows how delphi displays the root, so you can get back to it.
Mantis conversion info:
- Mantis ID: 24230
- OS: Window
- OS Build: Win7
- Build: r40594
- Platform: i386
- Version: 1.1 (SVN)
- Fixed in version: 1.1 (SVN)
- Fixed in revision: r40732 (#cb7146f4)