Skip to main content
Version: 2023

VisListBoxBase

Namespace: PPJ.Runtime.Vis

Assembly: PPJ.Web.Vis.49 (4.9.0.0)

Base class for all the extended listbox classes in Vis.

public class VisListBoxBase : SalListBox

Constructors

Instance memberVisListBoxBase()

Default Constructor.

Properties

Instance memberAllowHtml

Boolean: Indicates that the control can display html in the Text property. (Default: True)

Instance memberhFont

SalNumber: Multiple Inheritance: Wrapper property.

Instance memberhItem

SalNumber: Multiple Inheritance: Wrapper property.

Instance memberhPicNormal

SalNumber: Multiple Inheritance: Wrapper property.

Instance memberhPicSelect

SalNumber: Multiple Inheritance: Wrapper property.

Instance membernColor

SalNumber: Multiple Inheritance: Wrapper property.

Instance membernIndex

SalNumber: Multiple Inheritance: Wrapper property.

Instance membernItemFlags

SalNumber: Multiple Inheritance: Wrapper property.

Instance membernLevel

SalNumber: Multiple Inheritance: Wrapper property.

Instance membernStyle

SalNumber: Multiple Inheritance: Wrapper property.

Instance membernValue

SalNumber: Multiple Inheritance: Wrapper property.

Instance memberSelectedIndex

Int32:

Instance membersText

SalString: Multiple Inheritance: Wrapper property.

Methods

Instance memberAddColor(sText, nColor)

Adds an item to the list and displays it in the specified color.

ParameterTypeDescription
sTextSalString
nColorSalNumber

Returns: SalNumber.

Instance memberAddColorValue(sText, nColor, nValue)

Adds an item to the list, displays it in the specified color and associates the specified value with the item.

ParameterTypeDescription
sTextSalString
nColorSalNumber
nValueSalNumber

Returns: SalNumber.

Instance memberAddFont(sText, hFont)

Adds an item to the list control and displays it in the specified font.

ParameterTypeDescription
sTextSalString
hFontSalNumber

Returns: SalNumber.

Instance memberAddFontValue(sText, hFont, nValue)

Adds a new item with the specified font and value.

ParameterTypeDescription
sTextSalString
hFontSalNumber
nValueSalNumber

Returns: SalNumber.

Instance memberAddPicture(sText, hPicNormal, hPicSelected)

Adds an item to the list control and specified an image for the normal and selected state.

ParameterTypeDescription
sTextSalString
hPicNormalSalNumber
hPicSelectedSalNumber

Returns: SalNumber.

Instance memberAddPictureValue(sText, hPicNormal, hPicSelected, nValue)

Adds an item to the list control and specified an image for the normal and selected state, and a value to associate with the item.

ParameterTypeDescription
sTextSalString
hPicNormalSalNumber
hPicSelectedSalNumber
nValueSalNumber

Returns: SalNumber.

Instance memberCollapse(nIndex)

Collapses all descendant items.

ParameterTypeDescription
nIndexSalNumber

Returns: SalBoolean.

Instance memberDeleteChild(nIndex)

Deletes the child item from the tree control.

ParameterTypeDescription
nIndexSalNumber

Returns: SalNumber.

Instance memberDeleteDescendents(nIndex)

Deletes all descendants (children, grandchildren, and so on) of the specified child.

ParameterTypeDescription
nIndexSalNumber

Returns: SalNumber.

Instance memberDemote(nIndex, hPicNormal, hPicSelected)

Moves an item and all descendants right in the outline by making the item become the last child of the previous sibling.

ParameterTypeDescription
nIndexSalNumber
hPicNormalSalNumber
hPicSelectedSalNumber

Returns: SalBoolean.

Instance memberDisableItem(nIndex, nColor)

Disables the specified item.

ParameterTypeDescription
nIndexSalNumber
nColorSalNumber

Returns: SalNumber.

Instance memberDragDrop(nSourceIndex, hWndTarget, nTargetIndex, nDropMode)

Moves the source item to the new location, providing support for dragging tree items.

ParameterTypeDescription
nSourceIndexSalNumber
hWndTargetSalWindowHandle
nTargetIndexSalNumber
nDropModeSalNumber

Returns: SalBoolean.

Instance memberEnableItem(nIndex, nColor)

Enables the specified item.

ParameterTypeDescription
nIndexSalNumber
nColorSalNumber

Returns: SalNumber.

Instance memberEnumChildren(hItem, hItems)

Enumerates child item handles for a specified item.

ParameterTypeDescription
hItemSalNumber
hItemsSalArray<SalNumber>

Returns: SalNumber.

Instance memberEnumDescendents(hItemParent, hItems)

Enumerates descendant (children, grandchildren, and so on) item handles for a specified item.

ParameterTypeDescription
hItemParentSalNumber
hItemsSalArray<SalNumber>

Returns: SalNumber.

Instance memberExpand(nIndex)

Expands an outline one level at the index specified.

ParameterTypeDescription
nIndexSalNumber

Returns: SalNumber.

Instance memberExpandDescendents(nIndex)

Displays all descendants of an item.

ParameterTypeDescription
nIndexSalNumber

Returns: SalBoolean.

Instance memberFindItemValue(hItem, nValue)

Finds the item with the specified value in the descendants of the specified node.

ParameterTypeDescription
hItemSalNumber
nValueSalNumber

Returns: SalNumber.

Instance memberFreeChild(hItemChild)

Frees memory for the item specified and for all its descendants.

ParameterTypeDescription
hItemChildSalNumber

Returns: SalBoolean.

Instance memberFreeDescendents(hItemParent)

Frees memory for all descendants of the item specified.

ParameterTypeDescription
hItemParentSalNumber

Returns: SalBoolean.

Instance memberGetColor(nIndex)

Returns the current color of the list item.

ParameterTypeDescription
nIndexSalNumber

Returns: SalNumber.

Instance memberGetFlags(nIndex)

Returns the item's flags.

ParameterTypeDescription
nIndexSalNumber

Returns: SalNumber.

Instance memberGetFont(nIndex)

Returns the current font of the list control item.

ParameterTypeDescription
nIndexSalNumber

Returns: SalNumber.

Instance memberGetItemColor(hItem)

Retrieves the color associated with an outline item.

ParameterTypeDescription
hItemSalNumber

Returns: SalNumber.

Instance memberGetItemData(hItem, sText, nValue, nItemFlags)

ParameterTypeDescription
hItemSalNumber
sTextSalString&
nValueSalNumber&
nItemFlagsSalNumber&

Returns: SalBoolean.

Instance memberGetItemFlags(hItem)

Returns the items's flags.

ParameterTypeDescription
hItemSalNumber

Returns: SalNumber.

Instance memberGetItemFont(hItem)

Retrieves the font associated with an outline item.

ParameterTypeDescription
hItemSalNumber

Returns: SalNumber.

Instance memberGetItemHandle(nIndex)

Retrieves the item handle based on an index specified.

ParameterTypeDescription
nIndexSalNumber

Returns: SalNumber.

Instance memberGetItemIndex(hItem)

Retrieves the index associated with an outline item based on an item handle.

ParameterTypeDescription
hItemSalNumber

Returns: SalNumber.

Instance memberGetItemPicture(hItem, hPicNormal, hPicSelected)

ParameterTypeDescription
hItemSalNumber
hPicNormalSalNumber&
hPicSelectedSalNumber&

Returns: SalBoolean.

Instance memberGetItemText(hItem)

Returns the text for the outline item.

ParameterTypeDescription
hItemSalNumber

Returns: SalString.

Instance memberGetItemValue(hItem)

Returns the value saved with the outline item.

ParameterTypeDescription
hItemSalNumber

Returns: SalNumber.

Instance memberGetLevel(hItem)

Returns the indentation level of the specified item.

ParameterTypeDescription
hItemSalNumber

Returns: SalNumber.

Instance memberGetNextSibling(hItem)

Retrieves the item handle for the next sibling of the specified item.

ParameterTypeDescription
hItemSalNumber

Returns: SalNumber.

Instance memberGetParent(hItem)

Retrieves the item handle for the parent of the specified item.

ParameterTypeDescription
hItemSalNumber

Returns: SalNumber.

Instance memberGetPicture(nIndex, hPicNormal, hPicSelected)

ParameterTypeDescription
nIndexSalNumber
hPicNormalSalNumber&
hPicSelectedSalNumber&

Returns: SalNumber.

Instance memberGetPrevSibling(hItem)

Retrieves the item handle for the previous sibling of the specified item.

ParameterTypeDescription
hItemSalNumber

Returns: SalNumber.

Instance memberGetRoot()

Returns the handle for the root node.

Returns: SalNumber.

Instance memberGetStyle()

Returns the style flags for the control.

Returns: SalNumber.

Instance memberInsertColor(nIndex, sText, nColor)

Inserts an item to the list control at the specified position and displays it in the specified color.

ParameterTypeDescription
nIndexSalNumber
sTextSalString
nColorSalNumber

Returns: SalNumber.

Instance memberInsertColorValue(nIndex, sText, nColor, nValue)

Inserts an item to the list control at the specified position, displays it in the specified color and associates the specified value to the item.

ParameterTypeDescription
nIndexSalNumber
sTextSalString
nColorSalNumber
nValueSalNumber

Returns: SalNumber.

Instance memberInsertFont(nIndex, sText, hFont)

Adds an item to a list control at the specified index and displays it in the specified font.

ParameterTypeDescription
nIndexSalNumber
sTextSalString
hFontSalNumber

Returns: SalNumber.

Instance memberInsertFontValue(nIndex, sText, hFont, nValue)

Adds an item to the list control, displays it in the specified font, and associates the specified value with the item.

ParameterTypeDescription
nIndexSalNumber
sTextSalString
hFontSalNumber
nValueSalNumber

Returns: SalNumber.

Instance memberInsertPicture(nIndex, sText, hPicNormal, hPicSelected)

Inserts an item at the specified position and specifies an image for the normal and selected state.

ParameterTypeDescription
nIndexSalNumber
sTextSalString
hPicNormalSalNumber
hPicSelectedSalNumber

Returns: SalNumber.

Instance memberInsertPictureValue(nIndex, sText, hPicNormal, hPicSelected, nValue)

Inserts an item at the specified position and specifies an image for the normal and selected state, and associates a value to the item.

ParameterTypeDescription
nIndexSalNumber
sTextSalString
hPicNormalSalNumber
hPicSelectedSalNumber
nValueSalNumber

Returns: SalNumber.

Instance memberLoadChild(hItemParent, hPicNormal, hPicSelected, sText, nValue, nItemFlags)

Inserts an item as the last child of the specified parent.

ParameterTypeDescription
hItemParentSalNumber
hPicNormalSalNumber
hPicSelectedSalNumber
sTextSalString
nValueSalNumber
nItemFlagsSalNumber

Returns: SalNumber.

Instance memberLoadChildren(hItemParent, hPicNormal, hPicSelect, sTexts, nValues, nItemFlags)

Inserts multiple items as the last children of the specified parent item.

ParameterTypeDescription
hItemParentSalNumber
hPicNormalSalNumber
hPicSelectSalNumber
sTextsSalArray<SalString>
nValuesSalArray<SalNumber>
nItemFlagsSalArray<SalNumber>

Returns: SalNumber.

Instance memberLoadOutline(sBlob)

Deserializes the entire outline tree from the specified string.

ParameterTypeDescription
sBlobSalString

Returns: SalNumber.

Instance memberLoadOutlineFile(sFileName, hPicParentNormal, hPicParentSelect, hPicChildNormal, hPicChildSelect)

Loads the serialized outline structure from the file and creates the new items as children of the specified node.

ParameterTypeDescription
sFileNameSalString
hPicParentNormalSalNumber
hPicParentSelectSalNumber
hPicChildNormalSalNumber
hPicChildSelectSalNumber

Returns: SalNumber.

Instance memberLoadSibling(hItemBefore, hPicNormal, hPicSelected, sText, nValue, nItemFlags)

Loads a new tree node as a sibling of the specified item.

ParameterTypeDescription
hItemBeforeSalNumber
hPicNormalSalNumber
hPicSelectedSalNumber
sTextSalString
nValueSalNumber
nItemFlagsSalNumber

Returns: SalNumber.

Instance memberMoveDown(nIndex)

Moves the specified item down one position in the tree.

ParameterTypeDescription
nIndexSalNumber

Returns: SalBoolean.

Instance memberMoveUp(nIndex)

Moves an item and its descendants up in the list.

ParameterTypeDescription
nIndexSalNumber

Returns: SalBoolean.

Instance memberPromote(nIndex, hPicNormal, hPicSelected)

Moves an item and its descendants left in the outline by making it the last sibling of the parent item.

ParameterTypeDescription
nIndexSalNumber
hPicNormalSalNumber
hPicSelectedSalNumber

Returns: SalBoolean.

Instance memberSaveOutline(sBlob)

ParameterTypeDescription
sBlobSalString&

Returns: SalNumber.

Instance memberSetColor(nIndex, nColor)

Sets the color of a list item.

ParameterTypeDescription
nIndexSalNumber
nColorSalNumber

Returns: SalNumber.

Instance memberSetFlags(nIndex, nFlags, bState)

Sets the item's flags.

ParameterTypeDescription
nIndexSalNumber
nFlagsSalNumber
bStateSalBoolean

Returns: SalBoolean.

Instance memberSetFont(nIndex, hFont)

Sets the font of the list control item.

ParameterTypeDescription
nIndexSalNumber
hFontSalNumber

Returns: SalNumber.

Instance memberSetItemColor(hItem, nColor)

Sets the color of the outline item.

ParameterTypeDescription
hItemSalNumber
nColorSalNumber

Returns: SalBoolean.

Instance memberSetItemData(hItem, sText, nValue, nItemFlags)

Updates the specified item.

ParameterTypeDescription
hItemSalNumber
sTextSalString
nValueSalNumber
nItemFlagsSalNumber

Returns: SalNumber.

Instance memberSetItemFlags(hItem, nFlags, bState)

Sets the item's flags.

ParameterTypeDescription
hItemSalNumber
nFlagsSalNumber
bStateSalBoolean

Returns: SalBoolean.

Instance memberSetItemFont(hItem, hFont)

Sets the font of the outline item.

ParameterTypeDescription
hItemSalNumber
hFontSalNumber

Returns: SalBoolean.

Instance memberSetItemPicture(hItem, hPicNormal, hPicSelected)

Assigns new bitmaps to the specified item.

ParameterTypeDescription
hItemSalNumber
hPicNormalSalNumber
hPicSelectedSalNumber

Returns: SalBoolean.

Instance memberSetItemText(hItem, sText)

Sets the text of the outline item.

ParameterTypeDescription
hItemSalNumber
sTextSalString

Returns: SalBoolean.

Instance memberSetItemValue(hItem, nValue)

Sets the value associated to the outline item.

ParameterTypeDescription
hItemSalNumber
nValueSalNumber

Returns: SalBoolean.

Instance memberSetOutlineRedraw(bState)

Enables or disables drawing.

ParameterTypeDescription
bStateSalBoolean

Returns: SalBoolean.

Instance memberSetPicture(nIndex, hPicNormal, hPicSelected)

Changes the normal and selected images for the specified item.

ParameterTypeDescription
nIndexSalNumber
hPicNormalSalNumber
hPicSelectedSalNumber

Returns: SalNumber.

Instance memberSetStyle(nStyle)

Sets the style flags for the control.

ParameterTypeDescription
nStyleSalNumber

Returns: SalBoolean.

Instance memberShowOutline(nLevel)

Expands list items up to the specified level.

ParameterTypeDescription
nLevelSalNumber

Returns: SalBoolean.

Inherited By

NameDescription
VisColorListBoxExtended ListBox, supports colored items.
VisDirListBoxDisplays collapsible list of directories in a listbox.
VisDriveListBoxExtended ListBox, displays list of available drives.
VisFileListBoxExtended ListBox, displays the files list and file informations for a directory.
VisFontListBoxExtended ListBox, supports items of different font.
VisFontNameListBoxExtended ListBox, lists the names of all the installed fonts.
VisPictureListBoxListbox with pictures.
VisRadioListBox

Implements

NameDescription
ISalControl
ISalListControl
ISalWindow