Sign in Join
Wiki copytemporary

ATShellTreeview: what changed

Revision 1 to 2. Removed lines have a minus sign; added lines have a plus sign.

OldNewLine
11# About
22
33**ATShellTreeview** is Lazarus component, descendant of TreeView, which provides treeview somewhat similar to VS Code editor. It gives "Folder" property which loads the folder to the root of treeview. Only first level of folder is read initially. All sub-folders are read on demand, on unfolding tree nodes. It gives event OnShellItemClick which allows to detect click and double-click on nodes (giving full file path).
44
55It uses helper object **ATShellIcons** which holds cache of file-type icons. Set of about 290 file-type icons is included in the GitHub repo, it's taken from VS Code project (free license). ATShellIcons detects icons for lot of common file types, and has event OnDetect for additional detection.
66
77**ATShellOptions** global record holds options of that treeview.
88
99License: MPL 2.0 or LGPL.
1010
1111# Usage
1212
1313Component is not placed on the Lazarus component palette, it must be created at runtime. Use class TATShellTreeview from unit "atshelltreeview", and use unit "atshellbase" too.
1414
1515Demo project shows how to load icon-set, how to change UI options of treeview. Demo project needs **ATFlatControls** package.
1616
1717Screenshot of Explorer test project (it has ATShellTreeview + ATListbox for the tabs list):
1818
19-<figure>
20-<img src="ATShellTreeview_demo.png" title="ATShellTreeview_demo.png" />
21-<figcaption>ATShellTreeview_demo.png</figcaption>
22-</figure>
19+![](/wiki-images/1/12/ATShellTreeview_demo.png)
2320
2421# Download
2522
2623- GitHub: <https://github.com/Alexey-T/CudaText_Explorer>
2724- GitHub of ATFlatControls needed for demo: <https://github.com/Alexey-T/ATFlatControls>
2825
2926---
3027*From the Free Pascal wiki, page "ATShellTreeview", as it stood on 2020-08-10 after a change by Alextp, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).*
3128Category: Components

Back to history