VisDirTreeListBox
Namespace: PPJ.Runtime.Vis
Assembly: PPJ.Web.Vis.50 (5.0.0.0)
Displays server directories as an outline, loading subdirectories when nodes expand.
- C#
- VB.NET
public class VisDirTreeListBox : VisOutlineListBox
Public Class VisDirTreeListBox
Inherits VisOutlineListBox
Paths refer to the server filesystem. The control handles SAL creation messages to initialize its contents.
Example:
var list = new VisDirTreeListBox();
list.Populate(System.IO.Path.GetTempPath());
Constructors
VisDirTreeListBox()
Creates the control and registers its SAL message handlers.
Methods
FromHandle(hWnd)
Resolves a SAL handle to an existing VisDirTreeListBox.
| Parameter | Type | Description |
|---|---|---|
| hWnd | SalWindowHandle | The control handle to resolve. |
Returns: VisDirTreeListBox. The associated control, or when no control is resolved.
Throws:
- InvalidCastException The handle identifies an incompatible control type.
GetSelectedDir()
Builds the filesystem path of the selected tree node.
Returns: SalString. The selected directory path, or Null if no node is selected.
Populate(sDir)
Replaces the tree with the specified directory and its immediate subdirectories.
| Parameter | Type | Description |
|---|---|---|
| sDir | SalString | The server directory to display. |
Returns: SalBoolean. True when directory population returns a nonzero item count; otherwise false.
The population helper traces enumeration exceptions. Deeper directories are loaded when expanded.
Implements
| Name | Description |
|---|---|
| ISalControl | |
| ISalListControl | |
| ISalWindow |