Shell Controls: what changed
Revision 1 to 2. Removed lines have a minus sign; added lines have a plus sign.
| Old | New | Line | |
|---|---|---|---|
| 1 | 1 | The Shell Controls are a series of advanced controls destinated to beaultifully represent files and directories of the system. | |
| 2 | 2 | ||
| 3 | 3 | ### TShellTreeView | |
| 4 | 4 | ||
| 5 | 5 | TShellTreeView component under the tab Misc. | |
| 6 | 6 | ||
| 7 | - | ||
| 8 | - | ||
| 9 | - | ||
| 10 | - | ||
| 11 | - | ||
| 12 | - | ||
| 13 | - | ||
| 14 | - | ||
| 7 | + |  | |
| 15 | 8 | ||
| 16 | 9 | Component Properties TShellTreeView. | |
| 17 | 10 | ||
| 18 | - | ||
| 19 | - | ||
| 20 | - | ||
| 21 | - | ||
| 22 | - | ||
| 23 | - | ||
| 24 | - | ||
| 25 | - | ||
| 11 | + |  | |
| 26 | 12 | ||
| 27 | 13 | Add component TShellListView. Set properties | |
| 28 | 14 | ||
| 29 | 15 | ``` pascal | |
| 30 | 16 | ShellTreeView1.ShellListView := ShellListView1; | |
| 31 | 17 | ShellListView1.ShellTreeView := ShellTreeView1; | |
| 32 | 18 | ``` | |
| 33 | 19 | ||
| 34 | - | ||
| 35 | - | ||
| 36 | - | ||
| 37 | - | ||
| 38 | - | ||
| 39 | - | ||
| 40 | - | ||
| 41 | - | ||
| 20 | + |  | |
| 42 | 21 | ||
| 43 | 22 | Run application. We can see root directory in Linux. | |
| 44 | 23 | ||
| 45 | - | ||
| 46 | - | ||
| 47 | - | ||
| 48 | - | ||
| 49 | - | ||
| 50 | - | ||
| 51 | - | ||
| 52 | - | ||
| 24 | + |  | |
| 53 | 25 | ||
| 54 | 26 | Better way to do this is: | |
| 55 | 27 | ||
| 56 | 28 | ``` pascal | |
| 57 | 29 | procedure TForm1.FormCreate(Sender: TObject); | |
| 58 | 30 | begin | |
| 59 | 31 | ShellTreeView2:= TShellTreeView.create(Self); | |
| 60 | 32 | ShellTreeView2.Left:=10; | |
| 61 | 33 | ShellTreeView2.Top:=10; | |
| 62 | 34 | ShellTreeView2.Width:=250; | |
| 63 | 35 | ShellTreeView2.Height:=430; | |
| 64 | 36 | ShellTreeView2.Parent:=Self; | |
| 65 | 37 | end; | |
| 66 | 38 | ``` | |
| 67 | 39 | ||
| 68 | - | ||
| 69 | - | ||
| 70 | - | ||
| 71 | - | ||
| 72 | - | ||
| 73 | - | ||
| 74 | - | ||
| 75 | - | ||
| 40 | + |  | |
| 76 | 41 | ||
| 77 | 42 | --- | |
| 78 | 43 | *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).* |
