Skip to main content
Version: 2025

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.

public class VisDirTreeListBox : 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

Instance member VisDirTreeListBox()

Creates the control and registers its SAL message handlers.

Methods

Static member FromHandle(hWnd)

Resolves a SAL handle to an existing VisDirTreeListBox.

ParameterTypeDescription
hWndSalWindowHandleThe control handle to resolve.

Returns: VisDirTreeListBox. The associated control, or when no control is resolved.

Throws:

Instance member GetSelectedDir()

Builds the filesystem path of the selected tree node.

Returns: SalString. The selected directory path, or Null if no node is selected.

Instance member Populate(sDir)

Replaces the tree with the specified directory and its immediate subdirectories.

ParameterTypeDescription
sDirSalStringThe 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

NameDescription
ISalControl
ISalListControl
ISalWindow