Vcl.Samples.DirOutln.TDirectoryOutline
Delphi
TDirectoryOutline = class(TCustomOutline)
C++
class PASCALIMPLEMENTATION TDirectoryOutline : public Vcl::Outline::TCustomOutline
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
class | public | Vcl.Samples.DirOutln.pas Vcl.Samples.DirOutln.hpp |
Vcl.Samples.DirOutln | Vcl.Samples.DirOutln |
Description
A sample VCL component displaying the directory hierarchy in a tree view.
Each node in the outline contains the directory name and an associated image. The associated bitmap depends on the state of the directory, whether it is collapsed, expanded, or it has no subdirectories.
To use a TDirectoryOutline in a VCL code project, click Component > Install Packages. Scroll down and make sure that Embarcadero Sample Components is checked.
Then, in a VCL project, in design mode, open the Samples folder in the Tool Palette. Drag a TDirectoryOutline into the form. In the code, add Vcl.Samples.DirOutln to the Uses clause.
To see the DirOutln.pas source code, use these instructions:
- Navigate to Project > Options > Delphi Compiler > Search path, click on the right side, and then click the Browse (...) button.
- Add this to the search path: C:\Program Files\Embarcadero\RAD Studio\<n.n>\source\Samples\Delphi.
- Press CTRL and click Vcl.Samples.DirOutln to see the source code.