VisDriveComboBox
Namespace: PPJ.Runtime.Vis
Assembly: PPJ.Web.Vis.50 (5.0.0.0)
Lists logical drives available to the application server with their drive-type pictures.
- C#
- VB.NET
public class VisDriveComboBox : VisComboBoxBase
Public Class VisDriveComboBox
Inherits VisComboBoxBase
Paths refer to the server filesystem. The control handles SAL creation messages to initialize its contents.
Example:
var list = new VisDriveComboBox();
SalNumber count = list.Populate();
Constructors
VisDriveComboBox()
Creates the control and registers its SAL message handlers.
Methods
FromHandle(hWnd)
Resolves a SAL handle to an existing VisDriveComboBox.
| Parameter | Type | Description |
|---|---|---|
| hWnd | SalWindowHandle | The control handle to resolve. |
Returns: VisDriveComboBox. The associated control, or when no control is resolved.
Throws:
- InvalidCastException The handle identifies an incompatible control type.
GetDrive(nIndex)
Extracts a drive path from an item caption.
| Parameter | Type | Description |
|---|---|---|
| nIndex | SalNumber | The zero-based item index. |
Returns: SalString. The caption through its first directory separator, or the entire caption when no separator occurs.
GetDriveType(nIndex)
Reads the drive-type value associated with an item.
| Parameter | Type | Description |
|---|---|---|
| nIndex | SalNumber | The zero-based item index. |
Returns: SalNumber. The stored Visual Toolchest drive-type code.
GetSelectedDrive()
Gets the drive path of the selected item.
Returns: SalString. The selected drive path, or an empty string if no item is selected.
Populate()
Replaces the items with the server's logical drives and selects the current drive.
Returns: SalNumber. The resulting number of items.
Implements
| Name | Description |
|---|---|
| ISalControl | |
| ISalEditControl | |
| ISalListControl | |
| ISalWindow |