VisFileListBox
Namespace: PPJ.Runtime.Vis
Assembly: PPJ.Web.Vis.50 (5.0.0.0)
Displays server files and directories with type pictures and tab-separated metadata.
- C#
- VB.NET
public class VisFileListBox : VisListBoxBase
Public Class VisFileListBox
Inherits VisListBoxBase
Paths refer to the server filesystem. The control handles SAL creation messages to initialize its contents.
Example:
var list = new VisFileListBox();
SalNumber count = list.Populate(System.IO.Path.GetTempPath());
Constructors
VisFileListBox()
Creates the control and registers its SAL message handlers.
Methods
FromHandle(hWnd)
Resolves a SAL handle to an existing VisFileListBox.
| Parameter | Type | Description |
|---|---|---|
| hWnd | SalWindowHandle | The control handle to resolve. |
Returns: VisFileListBox. The associated control, or when no control is resolved.
Throws:
- InvalidCastException The handle identifies an incompatible control type.
Populate(sPath)
Replaces the items with a parent-directory entry, subdirectories, and files.
| Parameter | Type | Description |
|---|---|---|
| sPath | SalString | The server directory path, including its trailing directory separator; the method appends .. |
Returns: SalNumber. The directory count plus file count plus one for the parent-directory entry.
Captions include tab-separated date, time, and attribute text; files also include a formatted size. Displays a wait cursor during enumeration.
Implements
| Name | Description |
|---|---|
| ISalControl | |
| ISalListControl | |
| ISalWindow |