Skip to main content

VisListBoxBase

Namespace: PPJ.Runtime.Vis

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

Base class for all the extended list box classes in Vis.

public class VisListBoxBase : SalListBox

Constructors

Instance memberVisListBoxBase()

Default Constructor.

Properties

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 memberItemImageSize

Size: Returns or sets the size of the images associated to the items in the list box.

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: index of selected item or -1 if none is selected

Instance membersText

SalString: Multiple Inheritance: Wrapper property.

Methods

Instance memberAddColor(text, color)

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

ParameterTypeDescription
textSalString
colorSalNumber

Returns: SalNumber.

Instance memberAddColorValue(text, color, value)

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

ParameterTypeDescription
textSalString
colorSalNumber
valueSalNumber

Returns: SalNumber.

Instance memberAddFont(text, hFont)

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

ParameterTypeDescription
textSalString
hFontSalNumber

Returns: SalNumber.

Instance memberAddFontValue(text, hFont, value)

Adds a new item with the specified font and value.

ParameterTypeDescription
textSalString
hFontSalNumber
valueSalNumber

Returns: SalNumber.

Instance memberAddPicture(text, picNormal, picSelect)

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

ParameterTypeDescription
textSalString
picNormalSalNumber
picSelectSalNumber

Returns: SalNumber.

Instance memberAddPictureValue(text, picNormal, picSelect, value)

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
textSalString
picNormalSalNumber
picSelectSalNumber
valueSalNumber

Returns: SalNumber.

Instance memberCollapse(index)

Collapses all descendant items.

ParameterTypeDescription
indexSalNumber

Returns: SalBoolean.

Instance memberDeleteChild(index)

Deletes the child item from the tree control.

ParameterTypeDescription
indexSalNumber

Returns: SalNumber.

Instance memberDeleteDescendents(index)

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

ParameterTypeDescription
indexSalNumber

Returns: SalNumber.

Instance memberDemote(index, picNormal, picSelect)

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

ParameterTypeDescription
indexSalNumber
picNormalSalNumber
picSelectSalNumber

Returns: SalBoolean.

Instance memberDisableItem(index, color)

Disables the specified item.

ParameterTypeDescription
indexSalNumber
colorSalNumber

Returns: SalNumber.

Instance memberDragDrop(sourceIndex, target, targetIndex, dropMode)

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

ParameterTypeDescription
sourceIndexSalNumber
targetSalWindowHandle
targetIndexSalNumber
dropModeSalNumber

Returns: SalBoolean.

Instance memberEnableItem(index, color)

Enables the specified item.

ParameterTypeDescription
indexSalNumber
colorSalNumber

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(index)

Expands an outline one level at the index specified.

ParameterTypeDescription
indexSalNumber

Returns: SalNumber.

Instance memberExpandDescendents(index)

Displays all descendants of an item.

ParameterTypeDescription
indexSalNumber

Returns: SalBoolean.

Instance memberFindItemValue(hItem, value)

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

ParameterTypeDescription
hItemSalNumber
valueSalNumber

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(index)

Returns the current color of the list item.

ParameterTypeDescription
indexSalNumber

Returns: SalNumber.

Instance memberGetFlags(index)

Returns the item's flags.

ParameterTypeDescription
indexSalNumber

Returns: SalNumber.

Instance memberGetFont(index)

Returns the current font of the list control item.

ParameterTypeDescription
indexSalNumber

Returns: SalNumber.

Instance memberGetIndexFromPoint(xPos, yPos)

Returns the index of the item at the indicated screen coordinates.

ParameterTypeDescription
xPosSalNumber
yPosSalNumber

Returns: SalNumber.

Instance memberGetItemColor(hItem)

Retrieves the color associated with an outline item.

ParameterTypeDescription
hItemSalNumber

Returns: SalNumber.

Instance memberGetItemData(hItem, text, value, itemFlags)

ParameterTypeDescription
hItemSalNumber
textSalString&
valueSalNumber&
itemFlagsSalNumber&

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(index)

Retrieves the item handle based on an index specified.

ParameterTypeDescription
indexSalNumber

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, picNormal, picSelect)

ParameterTypeDescription
hItemSalNumber
picNormalSalNumber&
picSelectSalNumber&

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(index, picNormal, picSelect)

ParameterTypeDescription
indexSalNumber
picNormalSalNumber&
picSelectSalNumber&

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 memberGetTextRectangle(index, top, left, bottom, right)

ParameterTypeDescription
indexSalNumber
topSalNumber&
leftSalNumber&
bottomSalNumber&
rightSalNumber&

Returns: SalBoolean.

Instance memberInsertColor(index, text, color)

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

ParameterTypeDescription
indexSalNumber
textSalString
colorSalNumber

Returns: SalNumber.

Instance memberInsertColorValue(index, text, color, value)

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
indexSalNumber
textSalString
colorSalNumber
valueSalNumber

Returns: SalNumber.

Instance memberInsertFont(index, text, hFont)

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

ParameterTypeDescription
indexSalNumber
textSalString
hFontSalNumber

Returns: SalNumber.

Instance memberInsertFontValue(index, text, hFont, value)

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

ParameterTypeDescription
indexSalNumber
textSalString
hFontSalNumber
valueSalNumber

Returns: SalNumber.

Instance memberInsertPicture(index, text, picNormal, picSelect)

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

ParameterTypeDescription
indexSalNumber
textSalString
picNormalSalNumber
picSelectSalNumber

Returns: SalNumber.

Instance memberInsertPictureValue(index, text, picNormal, picSelect, value)

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
indexSalNumber
textSalString
picNormalSalNumber
picSelectSalNumber
valueSalNumber

Returns: SalNumber.

Instance memberLoadChild(hItemParent, picNormal, picSelect, text, value, itemFlags)

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

ParameterTypeDescription
hItemParentSalNumber
picNormalSalNumber
picSelectSalNumber
textSalString
valueSalNumber
itemFlagsSalNumber

Returns: SalNumber.

Instance memberLoadChildren(hItemParent, picNormal, picSelect, text, values, itemFlags)

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

ParameterTypeDescription
hItemParentSalNumber
picNormalSalArray<SalNumber>
picSelectSalArray<SalNumber>
textSalArray<SalString>
valuesSalArray<SalNumber>
itemFlagsSalArray<SalNumber>

Returns: SalNumber.

Instance memberLoadChildren(hItemParent, picNormal, picSelect, text, values, itemFlags)

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

ParameterTypeDescription
hItemParentSalNumber
picNormalSalNumber
picSelectSalNumber
textSalArray<SalString>
valuesSalArray<SalNumber>
itemFlagsSalArray<SalNumber>

Returns: SalNumber.

Instance memberLoadOutline(blob)

Deserializes the entire outline tree from the specified string.

ParameterTypeDescription
blobSalString

Returns: SalNumber.

Instance memberLoadOutlineFile(fileName, picParentNormal, picParentSelect, picChildNormal, picChildSelect)

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

ParameterTypeDescription
fileNameSalString
picParentNormalSalNumber
picParentSelectSalNumber
picChildNormalSalNumber
picChildSelectSalNumber

Returns: SalNumber.

Instance memberLoadSibling(hItemBefore, picNormal, picSelect, text, value, itemFlags)

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

ParameterTypeDescription
hItemBeforeSalNumber
picNormalSalNumber
picSelectSalNumber
textSalString
valueSalNumber
itemFlagsSalNumber

Returns: SalNumber.

Instance memberMoveDown(index)

Moves the specified item down one position in the tree.

ParameterTypeDescription
indexSalNumber

Returns: SalBoolean.

Instance memberMoveUp(index)

Moves an item and its descendants up in the list.

ParameterTypeDescription
indexSalNumber

Returns: SalBoolean.

Instance memberPromote(index, picNormal, picSelect)

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

ParameterTypeDescription
indexSalNumber
picNormalSalNumber
picSelectSalNumber

Returns: SalBoolean.

Instance memberSaveOutline(blob)

ParameterTypeDescription
blobSalString&

Returns: SalNumber.

Instance memberSetColor(index, color)

Sets the color of a list item.

ParameterTypeDescription
indexSalNumber
colorSalNumber

Returns: SalNumber.

Instance memberSetFlags(index, flags, state)

Sets the item's flags.

ParameterTypeDescription
indexSalNumber
flagsSalNumber
stateSalBoolean

Returns: SalBoolean.

Instance memberSetFont(index, hFont)

Sets the font of the list control item.

ParameterTypeDescription
indexSalNumber
hFontSalNumber

Returns: SalNumber.

Instance memberSetIndent(width)

Gets or sets the distance to indent each of the child tree node levels.

ParameterTypeDescription
widthSalNumber

Returns: SalBoolean.

Instance memberSetItemColor(hItem, color)

Sets the color of the outline item.

ParameterTypeDescription
hItemSalNumber
colorSalNumber

Returns: SalBoolean.

Instance memberSetItemData(hItem, text, value, itemFlags)

Updates the specified item.

ParameterTypeDescription
hItemSalNumber
textSalString
valueSalNumber
itemFlagsSalNumber

Returns: SalNumber.

Instance memberSetItemFlags(hItem, flags, state)

Sets the item's flags.

ParameterTypeDescription
hItemSalNumber
flagsSalNumber
stateSalBoolean

Returns: SalBoolean.

Instance memberSetItemFont(hItem, hFont)

Sets the font of the outline item.

ParameterTypeDescription
hItemSalNumber
hFontSalNumber

Returns: SalBoolean.

Instance memberSetItemPicture(hItem, picNormal, picSelect)

Assigns new bitmaps to the specified item.

ParameterTypeDescription
hItemSalNumber
picNormalSalNumber
picSelectSalNumber

Returns: SalBoolean.

Instance memberSetItemText(hItem, text)

Sets the text of the outline item.

ParameterTypeDescription
hItemSalNumber
textSalString

Returns: SalBoolean.

Instance memberSetItemValue(hItem, value)

Sets the value associated to the outline item.

ParameterTypeDescription
hItemSalNumber
valueSalNumber

Returns: SalBoolean.

Instance memberSetOutlineRedraw(state)

Enables or disables drawing.

ParameterTypeDescription
stateSalBoolean

Returns: SalBoolean.

Instance memberSetPicture(index, picNormal, picSelect)

Changes the normal and selected images for the specified item.

ParameterTypeDescription
indexSalNumber
picNormalSalNumber
picSelectSalNumber

Returns: SalNumber.

Instance memberSetStyle(style)

Sets the style flags for the control.

ParameterTypeDescription
styleSalNumber

Returns: SalBoolean.

Instance memberShowOutline(level)

Expands list items up to the specified level.

ParameterTypeDescription
levelSalNumber

Returns: SalBoolean.

Inherited By

NameDescription
VisColorListBoxExtended ListBox, supports colored items.
VisDirListBoxDisplays collapsible list of directories in a list box.
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.
VisPictureListBoxList box with pictures.
VisRadioListBox

Implements

NameDescription
ISalControl
ISalListControl
ISalWindow