Skip to main content

VisDesktopListBox

Namespace: PPJ.Runtime.Vis

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

Displays a desktop-style outline of drives and directories.

public class VisDesktopListBox : VisOutlineListBox

Example:

using (var list = new PPJ.Runtime.Vis.VisDesktopListBox())
{
list.Width = 240;
}

Constructors

Instance member VisDesktopListBox()

Initializes the desktop list box and its default behavior.

Methods

Static member FromHandle(handle)

Resolves this control type from a native window handle.

ParameterTypeDescription
handleSalWindowHandleThe native control handle.

Returns: VisDesktopListBox. The associated VisDesktopListBox, or null when no managed control owns the handle.

A handle belonging to a different managed control type causes an InvalidCastException.

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