Sign in Join
Wiki copytemporary

Shell Controls: what changed

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

Title: Shell Controls

OldNewLine
1+The Shell Controls are a series of advanced controls destinated to beaultifully represent files and directories of the system.
2+
3+### TShellTreeView
4+
5+TShellTreeView component under the tab Misc.
6+
7+<div>
8+
9+<figure>
10+<img src="TShellTreeView.png" title="TShellTreeView.png" />
11+<figcaption>TShellTreeView.png</figcaption>
12+</figure>
13+
14+</div>
15+
16+Component Properties TShellTreeView.
17+
18+<div>
19+
20+<figure>
21+<img src="Property.png" title="Property.png" />
22+<figcaption>Property.png</figcaption>
23+</figure>
24+
25+</div>
26+
27+Add component TShellListView. Set properties
28+
29+``` pascal
30+ShellTreeView1.ShellListView := ShellListView1;
31+ShellListView1.ShellTreeView := ShellTreeView1;
32+```
33+
34+<div>
35+
36+<figure>
37+<img src="Выделение_221.png" title="Выделение_221.png" />
38+<figcaption>Выделение_221.png</figcaption>
39+</figure>
40+
41+</div>
42+
43+Run application. We can see root directory in Linux.
44+
45+<div>
46+
47+<figure>
48+<img src="Form1_220.png" title="Form1_220.png" />
49+<figcaption>Form1_220.png</figcaption>
50+</figure>
51+
52+</div>
53+
54+Better way to do this is:
55+
56+``` pascal
57+procedure TForm1.FormCreate(Sender: TObject);
58+begin
59+ ShellTreeView2:= TShellTreeView.create(Self);
60+ ShellTreeView2.Left:=10;
61+ ShellTreeView2.Top:=10;
62+ ShellTreeView2.Width:=250;
63+ ShellTreeView2.Height:=430;
64+ ShellTreeView2.Parent:=Self;
65+end;
66+```
67+
68+<div>
69+
70+<figure>
71+<img src="Form1_222.png" title="Form1_222.png" />
72+<figcaption>Form1_222.png</figcaption>
73+</figure>
74+
75+</div>
76+
77+---
78+*From the Free Pascal wiki, page "Shell Controls", as it stood on 2021-02-11 after a change by Wp, 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).*

Back to history