Skip to main content
Version: 2025

VisDesktopListBox

Namespace: PPJ.Runtime.Vis

Assembly: PPJ.Web.Vis.50 (5.0.0.0)

Displays a desktop-style outline of the application server's drives and directories.

public class VisDesktopListBox : VisOutlineListBox

SAL creation builds Desktop, My Computer, and Network Neighborhood nodes and enumerates server logical drives. Directory children are loaded on expansion.

Example:

var browser = new VisDesktopListBox();
// After the user selects a directory:
SalString path = browser.GetSelectedDir();

Constructors

Instance member VisDesktopListBox()

Loads the shared drive/folder pictures and attaches the outline message handler.

Methods

Static member FromHandle(hWnd)

Resolves a SAL handle to an existing VisDesktopListBox.

ParameterTypeDescription
hWndSalWindowHandleThe control handle to resolve.

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

Throws:

Instance member GetItemDir(hItem)

Builds a filesystem path from an outline node handle.

ParameterTypeDescription
hItemSalNumberThe persistent Visual Toolchest node handle, not a visible item index.

Returns: SalString. The path, or SalString.Null for an unknown handle or a Desktop, My Computer, or Network Neighborhood node.

Instance member GetSelectedDir()

Builds a filesystem path from the selected node.

Returns: SalString. The selected path, or SalString.Null if nothing is selected.

Synthetic desktop nodes do not identify filesystem directories and may yield an empty path.

Implements

NameDescription
ISalControl
ISalListControl
ISalWindow