Skip to main content
Version: 2025

VisRadioListBox

Namespace: PPJ.Runtime.Vis

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

Displays list selections using radio-button or checkbox pictures.

public class VisRadioListBox : VisListBoxBase

Single-selection mode uses radio-button images. Other selection modes use checkbox images. The shared picture handles are loaded lazily by the constructor.

Example:

var choices = new VisRadioListBox();
choices.SelectionMode = Wisej.Web.SelectionMode.One;
choices.Add("Standard", true);
choices.Add("Express", false);

Constructors​

Instance member VisRadioListBox()​

Creates the list and loads the shared selection pictures when necessary.

Methods​

Instance member Add(sText, bSelect)​

Appends an item with the pictures appropriate to the current selection mode.

ParameterTypeDescription
sTextSalStringThe item caption.
bSelectSalBooleanWhether to select the new item.

Returns: SalNumber. The index returned by the underlying picture-item operation.

When selected, a single-selection list replaces the selected index; other selection modes add the item to the selection. The item value is zero.

Instance member AddValue(sText, bSelect, nValue)​

Appends an item with the pictures appropriate to the current selection mode.

ParameterTypeDescription
sTextSalStringThe item caption.
bSelectSalBooleanWhether to select the new item.
nValueSalNumberThe application value associated with the item.

Returns: SalNumber. The index returned by the underlying picture-item operation.

When selected, a single-selection list replaces the selected index; other selection modes add the item to the selection.

Static member FromHandle(hWnd)​

Resolves a SAL handle to an existing VisRadioListBox.

ParameterTypeDescription
hWndSalWindowHandleThe control handle to resolve.

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

Throws:

Instance member Insert(nIndex, sText, bSelect)​

Inserts an item with the pictures appropriate to the current selection mode.

ParameterTypeDescription
nIndexSalNumberThe zero-based position before which to insert the item.
sTextSalStringThe item caption.
bSelectSalBooleanWhether to select the new item.

Returns: SalNumber. The index returned by the underlying picture-item operation.

When selected, a single-selection list replaces the selected index; other selection modes add the item to the selection. The item value is zero.

Instance member InsertValue(nIndex, sText, bSelect, nValue)​

Inserts an item with the pictures appropriate to the current selection mode.

ParameterTypeDescription
nIndexSalNumberThe zero-based position before which to insert the item.
sTextSalStringThe item caption.
bSelectSalBooleanWhether to select the new item.
nValueSalNumberThe application value associated with the item.

Returns: SalNumber. The index returned by the underlying picture-item operation.

When selected, a single-selection list replaces the selected index; other selection modes add the item to the selection.

Implements​

NameDescription
ISalControl
ISalListControl
ISalWindow