Skip to main content

VisOutlineListBox

Namespace: PPJ.Runtime.Vis

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

Displays a Visual Toolchest outline with SAL messages, item data, and optional multiple selection.

public class VisOutlineListBox : TreeView, ISalWindow, ISalControl, ISalListControl

Example:

using (var outline = new PPJ.Runtime.Vis.VisOutlineListBox())
{
outline.HorizontalScrollbar = true;
}

Constructors

Instance member VisOutlineListBox()

Initializes the SAL window adapter, outline item extension, and tree display defaults.

Properties

Instance member AllowDrag

Boolean: Gets or sets whether automatic dragging is enabled. (Default: True)

Protected member CreateParams

CreateParams: Gets native creation parameters for the outline tree.

Instance member hFont

SalNumber:

Reads or updates the value held by this control's list extension.

Instance member hItem

SalNumber:

Reads or updates the value held by this control's list extension.

Instance member HorizontalScrollbar

Boolean: Gets or sets whether the outline can display a horizontal scrollbar. (Default: True)

Instance member hPicNormal

SalNumber:

Reads or updates the value held by this control's list extension.

Instance member hPicSelect

SalNumber:

Reads or updates the value held by this control's list extension.

Instance member ImageSize

Size: Gets or sets the default node image size. (Default: "16, 16")

An existing image list is updated immediately.

Instance member Label

Control: Gets or sets the label associated with this control through the SAL window implementation.

Instance member NamedProperties

SalNamedProperties: Gets the SAL named-property collection associated with this control.

Instance member nColor

SalNumber:

Reads or updates the value held by this control's list extension.

Instance member nIndex

SalNumber:

Reads or updates the value held by this control's list extension.

Instance member nItemFlags

SalNumber:

Reads or updates the value held by this control's list extension.

Instance member nLevel

SalNumber:

Reads or updates the value held by this control's list extension.

Instance member nStyle

SalNumber:

Reads or updates the value held by this control's list extension.

Instance member nValue

SalNumber:

Reads or updates the value held by this control's list extension.

Instance member SelectedNodes

TreeNode[]: Gets a snapshot of the selected nodes.

Instance member SelectionMode

SelectionMode: Gets or sets the outline selection mode. (Default: One)

Changing an existing multiple-selection mode clears the selected nodes.

Instance member sText

SalString:

Reads or updates the value held by this control's list extension.

Instance member UseStateImageList

Boolean: Gets or sets whether custom drawing uses the state image list.

Setting this property invalidates the control.

Methods

Instance member AddColor(text, color)

ParameterTypeDescription
textSalString
colorSalNumber

Returns: SalNumber.

Instance member AddColorValue(text, color, value)

ParameterTypeDescription
textSalString
colorSalNumber
valueSalNumber

Returns: SalNumber.

Instance member AddFont(text, hFont)

ParameterTypeDescription
textSalString
hFontSalNumber

Returns: SalNumber.

Instance member AddFontValue(text, hFont, value)

ParameterTypeDescription
textSalString
hFontSalNumber
valueSalNumber

Returns: SalNumber.

Instance member AddListItem(sName)

ParameterTypeDescription
sNameSalString

Returns: SalNumber.

Applies the referenced SAL operation to this control.

Instance member AddPicture(text, picNormal, picSelect)

ParameterTypeDescription
textSalString
picNormalSalNumber
picSelectSalNumber

Returns: SalNumber.

Instance member AddPictureValue(text, picNormal, picSelect, value)

ParameterTypeDescription
textSalString
picNormalSalNumber
picSelectSalNumber
valueSalNumber

Returns: SalNumber.

Instance member BringWindowToTop()

Brings this control to the front, or activates it when it is a top-level or MDI form.

Returns: SalBoolean. True if the translated control exists; otherwise, false.

Instance member CenterWindow()

Centers this window within its parent or, for a top-level form, its owner or screen working area.

Returns: SalBoolean. True when the translated control exists; otherwise, false.

A top-level form is constrained to the selected screen working area. A control without a parent is unchanged unless it is a top-level form.

Instance member Clear()

Clears the value or selection appropriate to this control type.

Returns: SalBoolean. False for an unavailable control or a form; otherwise, true.

Editable controls and labels have their text cleared; check boxes are unchecked; list selections are cleared. A date/time picker is set to the current date and time. Unrecognized control types are unchanged.

Instance member ClearCursor(nType)

Restores the default cursor for a role, using the I-beam for TextBox subclasses.

ParameterTypeDescription
nTypeSalNumberThe cursor role: Sys.CURSOR_Window, Sys.CURSOR_DragDrop, or Sys.CURSOR_DisableDrop.

Returns: SalBoolean. True if the cursor is assigned to a supported role; otherwise, false.

Instance member ClearList()

Removes all items from the list.

Returns: SalBoolean. True when the target supports lists; otherwise, false.

Instance member Collapse(index)

ParameterTypeDescription
indexSalNumber

Returns: SalBoolean.

Instance member DeleteChild(index)

ParameterTypeDescription
indexSalNumber

Returns: SalNumber.

Instance member DeleteDescendents(index)

ParameterTypeDescription
indexSalNumber

Returns: SalNumber.

Instance member DeleteListItem(nIndex)

ParameterTypeDescription
nIndexSalNumber

Returns: SalNumber.

Applies the referenced SAL operation to this control.

Instance member Demote(index, picNormal, picSelect)

ParameterTypeDescription
indexSalNumber
picNormalSalNumber
picSelectSalNumber

Returns: SalBoolean.

Instance member DestroyWindow()

Closes this window when it is a form, or disposes the control.

Returns: SalBoolean. True if the operation is accepted by the SAL window implementation; otherwise, false.

A true result reports that the close or disposal request was made; a form can apply its own closing behavior.

Instance member DisableItem(index, color)

ParameterTypeDescription
indexSalNumber
colorSalNumber

Returns: SalNumber.

Instance member DisableWindow()

Disables input to this control, or clears editability for a table column.

Returns: SalBoolean. True if the operation is accepted by the SAL window implementation; otherwise, false.

Instance member DisableWindowAndLabel()

Disables input to this control and disables its associated label.

Returns: SalBoolean. True if the operation is accepted by the SAL window implementation; otherwise, false.

Instance member DoDragDrop(sourceIndex, target, targetIndex, dropMode)

Moves an outline node into another outline tree.

ParameterTypeDescription
sourceIndexSalNumberThe source item index.
targetSalWindowHandleThe destination VisOutlineListBox.
targetIndexSalNumberThe destination item index.
dropModeSalNumberDROP_Child to append under the target, or DROP_Sibling to insert after it.

Returns: SalBoolean. True if the node moves; false for invalid nodes, unsupported targets/modes, or a move onto itself or a descendant.

Instance member EnableItem(index, color)

ParameterTypeDescription
indexSalNumber
colorSalNumber

Returns: SalNumber.

Instance member EnableWindow()

Enables input to this control, or enables editing for a table column.

Returns: SalBoolean. True if the operation is accepted by the SAL window implementation; otherwise, false.

For text-box controls, this operation also clears the read-only setting.

Native disabled styles are also cleared. When needed, tab navigation is restored except for unchecked radio buttons.

Instance member EnableWindowAndLabel()

Enables input to this control and enables its associated label.

Returns: SalBoolean. True if the operation is accepted by the SAL window implementation; otherwise, false.

Instance member EnumChildren(hItem, hItems)

ParameterTypeDescription
hItemSalNumber
hItemsSalArray<SalNumber>

Returns: SalNumber.

Instance member EnumDescendents(hItemParent, hItems)

ParameterTypeDescription
hItemParentSalNumber
hItemsSalArray<SalNumber>

Returns: SalNumber.

Instance member Expand(index)

ParameterTypeDescription
indexSalNumber

Returns: SalNumber.

Instance member ExpandDescendents(index)

ParameterTypeDescription
indexSalNumber

Returns: SalBoolean.

Instance member FindChild(windowName)

Searches this window for a child control by name.

ParameterTypeDescription
windowNameSalStringThe child control name to locate.

Returns: SalWindowHandle. The matching child handle, or a null SAL handle if no child is found.

Instance member FindItemValue(hItem, value)

ParameterTypeDescription
hItemSalNumber
valueSalNumber

Returns: SalNumber.

Instance member FormUnitsToPixels(formUnits, vertical)

Converts a length in form units to pixels using this control's form metrics.

ParameterTypeDescription
formUnitsSalNumberThe length in form units.
verticalSalBooleanTrue for a vertical measurement; false for a horizontal measurement.

Returns: SalNumber. The converted pixel length.

Instance member FreeChild(hItemChild)

ParameterTypeDescription
hItemChildSalNumber

Returns: SalBoolean.

Instance member FreeDescendents(hItemParent)

ParameterTypeDescription
hItemParentSalNumber

Returns: SalBoolean.

Static member FromHandle(handle)

Resolves the managed outline control associated with a native window handle.

ParameterTypeDescription
handleSalWindowHandleThe native control handle.

Returns: VisOutlineListBox. The corresponding VisOutlineListBox, or null when no managed control owns the handle.

A handle owned by another control type causes an InvalidCastException.

Instance member GetChildNodeCount(hItem, directChildrenOnly)

ParameterTypeDescription
hItemSalNumber
directChildrenOnlySalBoolean

Returns: SalNumber.

Instance member GetClassName()

Gets the translated application class name associated with this control.

Returns: SalString. The class name, an empty string for a runtime-defined class, or a null SAL string for an unresolved or native control.

Forms use their base type; nested table-window types are walked upward to a non-nested type.

Instance member GetColor(index)

ParameterTypeDescription
indexSalNumber

Returns: SalNumber.

Instance member GetControlType()

Gets the SAL window type of this control.

Returns: SalNumber. The SAL Sys.TYPE_* code for the translated control.

Instance member GetDataType()

Gets the SAL data type represented by this control.

Returns: SalNumber. The SAL data-type code, or zero if the translated control does not implement the SAL value contract.

Instance member GetFirstChild(typeMask)

Finds the first child matching a SAL window-type mask.

ParameterTypeDescription
typeMaskSalNumberThe SAL window types to include; zero matches no controls.

Returns: SalWindowHandle. The first matching child handle, or a null SAL handle when none matches.

Ordinary controls use tab order; table columns use their creation order, and MDI forms use their child-form collection.

Instance member GetFlags(index)

ParameterTypeDescription
indexSalNumber

Returns: SalNumber.

Instance member GetFont(index)

ParameterTypeDescription
indexSalNumber

Returns: SalNumber.

Instance member GetFont(name, size, enhancement)

Reads the control font's family, point size, and style flags.

ParameterTypeDescription
name by referenceSalStringReceives the font family name.
size by referenceSalNumberReceives the size in points.
enhancement by referenceSalNumberReceives the combined Sys.FONT_Enh* style flags.

Returns: SalBoolean. True if a font was available; otherwise, false.

Instance member GetIndexFromPoint(xPos, yPos)

ParameterTypeDescription
xPosSalNumber
yPosSalNumber

Returns: SalNumber.

Instance member GetItemColor(hItem)

ParameterTypeDescription
hItemSalNumber

Returns: SalNumber.

Instance member GetItemData(hItem, text, value, itemFlags)

ParameterTypeDescription
hItemSalNumber
text by referenceSalString
value by referenceSalNumber
itemFlags by referenceSalNumber

Returns: SalBoolean.

Instance member GetItemFlags(hItem)

ParameterTypeDescription
hItemSalNumber

Returns: SalNumber.

Instance member GetItemFont(hItem)

Gets the native font handle for an outline item.

ParameterTypeDescription
hItemSalNumberThe outline item handle.

Returns: SalNumber. The item font handle, or a newly allocated handle for the control font when the item has no font.

The fallback uses Font.ToHfont; release that native font handle when it is no longer needed.

Instance member GetItemHandle(index)

ParameterTypeDescription
indexSalNumber

Returns: SalNumber.

Instance member GetItemIndex(hItem)

ParameterTypeDescription
hItemSalNumber

Returns: SalNumber.

Instance member GetItemPicture(hItem, picNormal, picSelect)

ParameterTypeDescription
hItemSalNumber
picNormal by referenceSalNumber
picSelect by referenceSalNumber

Returns: SalBoolean.

Instance member GetItemText(hItem)

ParameterTypeDescription
hItemSalNumber

Returns: SalString.

Instance member GetItemValue(hItem)

ParameterTypeDescription
hItemSalNumber

Returns: SalNumber.

Instance member GetLabel()

Gets the label associated with this control.

Returns: SalWindowHandle. The associated label handle, or a null SAL handle if no label can be found.

Instance member GetLabelText(sText, nMaxLength)

Copies the associated label text to a supplied variable.

ParameterTypeDescription
sText by referenceSalStringReceives the label text when it can be read.
nMaxLengthSalNumberThe maximum number of leading characters to copy.

Returns: SalNumber. The number of characters copied, or zero if no label text is available.

Instance member GetLabelText(nMaxLength)

Gets this control's associated label text.

ParameterTypeDescription
nMaxLengthSalNumberThe maximum number of leading characters to return.

Returns: SalString. The label text limited to the requested length, or an empty string if no label exists.

Instance member GetLevel(hItem)

ParameterTypeDescription
hItemSalNumber

Returns: SalNumber.

Instance member GetListItemsCount()

Counts the entries in the list.

Returns: SalNumber. The item count, or Sys.LB_Err for an unsupported target.

Instance member GetListItemState(nIndex)

ParameterTypeDescription
nIndexSalNumber

Returns: SalBoolean.

Applies the referenced SAL operation to this control.

Instance member GetListItemText(nIndex, sText)

ParameterTypeDescription
nIndexSalNumber
sText by referenceSalString

Returns: SalNumber.

Applies the referenced SAL operation to this control.

Instance member GetListItemText(nIndex)

ParameterTypeDescription
nIndexSalNumber

Returns: SalString.

Applies the referenced SAL operation to this control.

Instance member GetListItemTextLength(nIndex)

ParameterTypeDescription
nIndexSalNumber

Returns: SalNumber.

Applies the referenced SAL operation to this control.

Instance member GetListSelectedIndex()

Gets the selected tree node index.

Returns: SalNumber. The selected node index within its sibling collection, or the SAL adapter selection result when no node is selected.

Instance member GetListSelectedItems(nSelectedArray)

ParameterTypeDescription
nSelectedArraySalArray<SalNumber>

Returns: SalBoolean.

Applies the referenced SAL operation to this control.

Instance member GetListSelectedItemsCount()

Counts selected entries in a multi-selection list.

Returns: SalNumber. The selected count, zero when selection is disabled, or -1 for single-selection mode.

Instance member GetLocation(x, y)

Reads this control's location in form units.

ParameterTypeDescription
x by referenceSalNumberReceives the horizontal location.
y by referenceSalNumberReceives the vertical location.

Returns: SalBoolean. Always true; an unresolved control produces zero coordinates.

Instance member GetName(text)

Copies this control's name to the supplied variable.

ParameterTypeDescription
text by referenceSalStringReceives the control name when the operation succeeds.

Returns: SalBoolean. True if the operation is accepted by the SAL window implementation; otherwise, false.

Instance member GetName()

Gets this control's name.

Returns: SalString. The control name, or an empty string if the control cannot be resolved.

Instance member GetNextChild(typeMask)

Finds the next sibling matching a SAL window-type mask.

ParameterTypeDescription
typeMaskSalNumberThe SAL window types to include; zero matches no controls.

Returns: SalWindowHandle. The next matching control handle, or a null SAL handle when none matches.

Instance member GetNextSibling(hItem)

ParameterTypeDescription
hItemSalNumber

Returns: SalNumber.

Instance member GetParent(hItem)

ParameterTypeDescription
hItemSalNumber

Returns: SalNumber.

Instance member GetParent()

Gets the SAL parent form, owner, or table container for this control.

Returns: SalWindowHandle. The parent window handle, or a null SAL handle if no parent can be resolved.

Instance member GetPicture(index, picNormal, picSelect)

ParameterTypeDescription
indexSalNumber
picNormal by referenceSalNumber
picSelect by referenceSalNumber

Returns: SalNumber.

Instance member GetPrevSibling(hItem)

ParameterTypeDescription
hItemSalNumber

Returns: SalNumber.

Instance member GetProperty(name, value)

Reads a SAL named property into a supplied variable.

ParameterTypeDescription
nameSalStringThe property name.
value by referenceSalStringReceives the value only when the property is found.

Returns: SalBoolean. True if a non-null property value was found; otherwise, false.

Instance member GetProperty(name)

Gets the value of a SAL named property.

ParameterTypeDescription
nameSalStringThe property name.

Returns: SalString. The property value, or a SAL null string if the value is unavailable.

Instance member GetRoot()

Returns: SalNumber.

Instance member GetSize(width, height)

Reads this control's size in form units.

ParameterTypeDescription
width by referenceSalNumberReceives the width.
height by referenceSalNumberReceives the height.

Returns: SalBoolean. Always true; an unresolved control produces a zero size.

Instance member GetStyle()

Returns: SalNumber.

Instance member GetText(sText, nMaxLen)

Copies this control's displayed text or long-string value to a SAL string.

ParameterTypeDescription
sText by referenceSalStringReceives the retrieved text.
nMaxLenSalNumberThe maximum character count for ordinary text; ignored for a Sys.DT_LongString value.

Returns: SalNumber. The number of characters copied, or zero when no text is available.

Instance member GetText(nMaxLen)

Gets this control's displayed text or long-string value.

ParameterTypeDescription
nMaxLenSalNumberThe maximum character count for ordinary text; ignored for a Sys.DT_LongString value.

Returns: SalString. The retrieved text, or an empty string if the control cannot be resolved.

Instance member GetTextRectangle(index, top, left, bottom, right)

ParameterTypeDescription
indexSalNumber
top by referenceSalNumber
left by referenceSalNumber
bottom by referenceSalNumber
right by referenceSalNumber

Returns: SalBoolean.

Instance member GetWindowColor(colorIndex)

Reads a window or cell color as a Win32 color value.

ParameterTypeDescription
colorIndexSalNumberThe Sys.COLOR_Index* color component to read.

Returns: SalNumber. The color encoded as a Win32 color value, or zero if the control is unavailable.

Transparent colors are reported as Sys.COLOR_None. Table-column window colors use the system window colors; cell colors use the column settings.

Instance member GetWindowState()

Gets the visibility and form-state classification of this window.

Returns: SalNumber. A Sys.Window_* state code; visible non-form controls report Sys.Window_Normal.

Instance member HideWindow()

Hides this control or table column.

Returns: SalBoolean. The visibility state before the operation, or false if the control cannot be resolved.

Instance member HideWindowAndLabel()

Hides this control and its associated label.

Returns: SalBoolean. The control's visibility before the operation, or false if it cannot be resolved.

Instance member InsertColor(index, text, color)

ParameterTypeDescription
indexSalNumber
textSalString
colorSalNumber

Returns: SalNumber.

Instance member InsertColorValue(index, text, color, value)

ParameterTypeDescription
indexSalNumber
textSalString
colorSalNumber
valueSalNumber

Returns: SalNumber.

Instance member InsertFont(index, text, hFont)

ParameterTypeDescription
indexSalNumber
textSalString
hFontSalNumber

Returns: SalNumber.

Instance member InsertFontValue(index, text, hFont, value)

ParameterTypeDescription
indexSalNumber
textSalString
hFontSalNumber
valueSalNumber

Returns: SalNumber.

Instance member InsertListItem(nIndex, sAdd)

ParameterTypeDescription
nIndexSalNumber
sAddSalString

Returns: SalNumber.

Applies the referenced SAL operation to this control.

Instance member InsertPicture(index, text, picNormal, picSelect)

ParameterTypeDescription
indexSalNumber
textSalString
picNormalSalNumber
picSelectSalNumber

Returns: SalNumber.

Instance member InsertPictureValue(index, text, picNormal, picSelect, value)

ParameterTypeDescription
indexSalNumber
textSalString
picNormalSalNumber
picSelectSalNumber
valueSalNumber

Returns: SalNumber.

Instance member InvalidateWindow()

Invalidates this control and its child controls for repainting.

Returns: SalBoolean. True if the operation is accepted by the SAL window implementation; otherwise, false.

Instance member IsDerivedFromClass(typeClass)

Tests this control's runtime type against an application base type.

ParameterTypeDescription
typeClassTypeThe type to test, including the framework's emulated inheritance relationships.

Returns: SalBoolean. True if the runtime type derives from the requested type; otherwise, false.

Instance member IsEnabled()

Determines whether this control accepts input.

Returns: SalBoolean. The enabled state, or the editable flag for a table column; false if the control cannot be resolved.

Instance member IsModified()

Reads this control's SAL modification flag.

Returns: SalBoolean. True if the control reports a modified value; otherwise, false.

Instance member IsVisible()

Determines whether this control is visible.

Returns: SalBoolean. The visible state, or the visibility flag for a table column; false if the control cannot be resolved.

Instance member KillTimer(idEvent)

Stops the native window timer with the specified identifier.

ParameterTypeDescription
idEventSalNumberThe timer identifier to remove.

Returns: SalBoolean. The native timer-removal result, or false if the control cannot be resolved.

Instance member LoadChild(hItemParent, picNormal, picSelect, text, value, itemFlags)

ParameterTypeDescription
hItemParentSalNumber
picNormalSalNumber
picSelectSalNumber
textSalString
valueSalNumber
itemFlagsSalNumber

Returns: SalNumber.

Instance member LoadChildren(hItemParent, picNormal, picSelect, text, values, itemFlags)

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

Returns: SalNumber.

Instance member LoadChildren(hItemParent, picNormal, picSelect, text, values, itemFlags)

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

Returns: SalNumber.

Instance member LoadOutline(blob)

ParameterTypeDescription
blobSalString

Returns: SalNumber.

Instance member LoadOutlineFile(fileName, picParentNormal, picParentSelect, picChildNormal, picChildSelect)

ParameterTypeDescription
fileNameSalString
picParentNormalSalNumber
picParentSelectSalNumber
picChildNormalSalNumber
picChildSelectSalNumber

Returns: SalNumber.

Instance member LoadSibling(hItemBefore, picNormal, picSelect, text, value, itemFlags)

ParameterTypeDescription
hItemBeforeSalNumber
picNormalSalNumber
picSelectSalNumber
textSalString
valueSalNumber
itemFlagsSalNumber

Returns: SalNumber.

Instance member MoveDown(index)

ParameterTypeDescription
indexSalNumber

Returns: SalBoolean.

Instance member MoveUp(index)

ParameterTypeDescription
indexSalNumber

Returns: SalBoolean.

Instance member MoveWindow(nXOffset, nYOffset)

Moves this control by an offset expressed in form units.

ParameterTypeDescription
nXOffsetSalNumberThe horizontal offset to add to the current position.
nYOffsetSalNumberThe vertical offset to add to the current position.

Returns: SalBoolean. True if the operation is accepted by the SAL window implementation; otherwise, false.

Protected member OnAfterSelect(e)

Marks the outline modified, sends SAM_Click for keyboard selection, and restores a saved multiple selection.

ParameterTypeDescription
eTreeViewEventArgsThe event data.

Protected member OnBeforeSelect(e)

Prevents disabled item selection and saves the current multiple selection before the base event.

ParameterTypeDescription
eTreeViewCancelEventArgsThe event data.

Protected member OnDragDrop(e)

Raises the base drop event and clears the drop highlight.

ParameterTypeDescription
eDragEventArgsThe event data.

Protected member OnDragLeave(e)

Raises the base drag-leave event and clears the drop highlight.

ParameterTypeDescription
eEventArgsThe event data.

Protected member OnGotFocus(e)

Invalidates multiple-selection highlighting and raises the base focus event.

ParameterTypeDescription
eEventArgsThe event data.

Protected member OnItemDrag(e)

Requests SAM_DragCanAutoStart for a left-button item drag and schedules dragging when the handler permits it.

ParameterTypeDescription
eItemDragEventArgsThe event data.

Protected member OnKeyDown(e)

Applies the configured multiple-selection keyboard behavior before raising the base event.

ParameterTypeDescription
eKeyEventArgsThe event data.

Protected member OnKeyUp(e)

Posts VTM_Click and raises the base key-release event.

ParameterTypeDescription
eKeyEventArgsThe event data.

Protected member OnLostFocus(e)

Invalidates multiple-selection highlighting and raises the base lost-focus event.

ParameterTypeDescription
eEventArgsThe event data.

Protected member OnMouseUp(e)

Forwards mouse-release messages to SAL and posts VTM_Click for a left release over an item area.

ParameterTypeDescription
eMouseEventArgsThe event data.

Instance member PixelsToFormUnits(nNumPixels, bVertical)

Converts a pixel length to form units using this control's form metrics.

ParameterTypeDescription
nNumPixelsSalNumberThe pixel length to convert.
bVerticalSalBooleanTrue for a vertical measurement; false for a horizontal measurement.

Returns: SalNumber. The converted length in form units.

Instance member PopulateList(hSql, sSelect)

ParameterTypeDescription
hSqlSalSqlHandle
sSelectSalString

Returns: SalBoolean.

Applies the referenced SAL operation to this control.

Instance member PopulateList(hSql, sSelect, errorHandler)

ParameterTypeDescription
hSqlSalSqlHandle
sSelectSalString
errorHandlerWhenSqlErrorHandler

Returns: SalBoolean.

Applies the referenced SAL operation to this control.

Instance member PostMessage(msg, mywParam, mylParam)

Posts a native Windows message to this control for asynchronous processing.

ParameterTypeDescription
msgSalNumberThe Windows or SAL message code.
mywParamSalNumberThe first message parameter.
mylParamSalNumberThe second message parameter.

Returns: SalBoolean. True if the native message was posted; false for an unavailable or disposed control, or if posting fails.

Instance member Promote(index, picNormal, picSelect)

ParameterTypeDescription
indexSalNumber
picNormalSalNumber
picSelectSalNumber

Returns: SalBoolean.

Instance member SaveOutline(blob)

ParameterTypeDescription
blob by referenceSalString

Returns: SalNumber.

Instance member SendMessage(msg, mywParam, mylParam)

Sends a native Windows message to this control synchronously.

ParameterTypeDescription
msgSalNumberThe Windows or SAL message code.
mywParamSalNumberThe first message parameter.
mylParamSalNumberThe second message parameter.

Returns: SalNumber. The native message result, or zero when the control is unavailable or disposed.

Instance member SendMessageToChildren(nMsg, nMywParam, nMylParam)

Dispatches a SAL message to this control's children.

ParameterTypeDescription
nMsgSalNumberThe SAL or application-defined message code.
nMywParamSalNumberThe first message parameter.
nMylParamSalNumberThe second message parameter.

Returns: SalBoolean. The result of child-message dispatch; false if the parent is unavailable or disposed.

Instance member SetColor(index, color)

ParameterTypeDescription
indexSalNumber
colorSalNumber

Returns: SalNumber.

Instance member SetContextMenu(menuName, flags)

Creates and assigns a context menu for this control.

ParameterTypeDescription
menuNameSalStringThe menu type name to resolve.
flagsSalNumberUse Sys.CM_TableCell to assign the table's cell-editor menu; otherwise, assign the control's context menu.

Returns: SalBoolean. True if a control and menu type resolve and the menu is created; otherwise, false.

When called during a SAL context-menu action, the created menu is also shown at the current mouse position.

Instance member SetContextMenu(menuType, flags)

Creates and assigns a context menu for this control.

ParameterTypeDescription
menuTypeTypeThe menu type to instantiate.
flagsSalNumberUse Sys.CM_TableCell to assign the table's cell-editor menu; otherwise, assign the control's context menu.

Returns: SalBoolean. True if a control and menu type resolve and the menu is created; otherwise, false.

When called during a SAL context-menu action, the created menu is also shown at the current mouse position.

Instance member SetCursor(resource, type)

Loads a cursor resource and assigns it to the requested role.

ParameterTypeDescription
resourceSalResourceCursorThe cursor resource to load.
typeSalNumberThe cursor role: Sys.CURSOR_Window, Sys.CURSOR_DragDrop, or Sys.CURSOR_DisableDrop.

Returns: SalBoolean. True if the cursor is assigned to a supported role; otherwise, false.

Instance member SetCursor(resourceId, type)

Assigns a system cursor or a cursor identified by its native handle to the requested role.

ParameterTypeDescription
resourceIdInt32A Sys.CURSOR_* identifier, or a native cursor handle represented as an integer.
typeSalNumberThe cursor role: Sys.CURSOR_Window, Sys.CURSOR_DragDrop, or Sys.CURSOR_DisableDrop.

Returns: SalBoolean. True if the cursor is assigned to a supported role; otherwise, false.

Instance member SetCursor(blob, type)

Loads a cursor from binary data and assigns it to the requested role.

ParameterTypeDescription
blobSalStringThe cursor file data stored in a SAL binary string.
typeSalNumberThe cursor role: Sys.CURSOR_Window, Sys.CURSOR_DragDrop, or Sys.CURSOR_DisableDrop.

Returns: SalBoolean. True if loading and assignment succeed; otherwise, false.

Instance member SetCursorFile(file, type)

Loads a cursor file and assigns it to the requested role.

ParameterTypeDescription
fileSalStringThe cursor file path.
typeSalNumberThe cursor role: Sys.CURSOR_Window, Sys.CURSOR_DragDrop, or Sys.CURSOR_DisableDrop.

Returns: SalBoolean. True if loading and assignment succeed; otherwise, false.

Instance member SetFlags(index, flags, state)

ParameterTypeDescription
indexSalNumber
flagsSalNumber
stateSalBoolean

Returns: SalBoolean.

Instance member SetFocus()

Moves keyboard focus to this control, deferring the change when SAL validation is in progress.

Returns: SalWindowHandle. The previously focused managed control as a SAL handle, or a null handle if the target is unavailable, a table column, an ActiveX host, disabled, or hidden.

Instance member SetFont(index, hFont)

ParameterTypeDescription
indexSalNumber
hFontSalNumber

Returns: SalNumber.

Instance member SetFont(name, size, enhancement)

Creates and assigns a font to this control.

ParameterTypeDescription
nameSalStringThe font family name.
sizeSalNumberThe font size in points.
enhancementSalNumberThe combined Sys.FONT_Enh* style flags.

Returns: SalBoolean. True if the font was created and assigned; otherwise, false.

Instance member SetIndent(width)

ParameterTypeDescription
widthSalNumber

Returns: SalBoolean.

Instance member SetItemColor(hItem, color)

ParameterTypeDescription
hItemSalNumber
colorSalNumber

Returns: SalBoolean.

Instance member SetItemData(hItem, text, value, itemFlags)

ParameterTypeDescription
hItemSalNumber
textSalString
valueSalNumber
itemFlagsSalNumber

Returns: SalNumber.

Instance member SetItemFlags(hItem, flags, state)

ParameterTypeDescription
hItemSalNumber
flagsSalNumber
stateSalBoolean

Returns: SalBoolean.

Instance member SetItemFont(hItem, hFont)

ParameterTypeDescription
hItemSalNumber
hFontSalNumber

Returns: SalBoolean.

Instance member SetItemPicture(hItem, picNormal, picSelect)

ParameterTypeDescription
hItemSalNumber
picNormalSalNumber
picSelectSalNumber

Returns: SalBoolean.

Instance member SetItemText(hItem, text)

ParameterTypeDescription
hItemSalNumber
textSalString

Returns: SalBoolean.

Instance member SetItemValue(hItem, value)

ParameterTypeDescription
hItemSalNumber
valueSalNumber

Returns: SalBoolean.

Instance member SetLabelText(sText)

Assigns the text of this control's associated label.

ParameterTypeDescription
sTextSalStringThe label text to display.

Returns: SalBoolean. True if an associated label was found and updated; otherwise, false.

Instance member SetListRedraw(bRedraw)

Enables or suspends list redraw through the SAL adapter.

ParameterTypeDescription
bRedrawSalNumberNonzero to enable redraw; zero to suspend it.

Returns: SalBoolean. The result returned by SalWindow.SetListRedraw.

Instance member SetListSelectedIndex(nIndex)

ParameterTypeDescription
nIndexSalNumber

Returns: SalBoolean.

Applies the referenced SAL operation to this control.

Instance member SetListSelectedItems(nIndex, bSelect)

ParameterTypeDescription
nIndexSalNumber
bSelectSalBoolean

Returns: SalBoolean.

Applies the referenced SAL operation to this control.

Instance member SetListSelectedText(nIndexStart, sText)

ParameterTypeDescription
nIndexStartSalNumber
sTextSalString

Returns: SalNumber.

Applies the referenced SAL operation to this control.

Instance member SetLocation(x, y)

Sets this control's location in form units.

ParameterTypeDescription
xSalNumberThe new horizontal coordinate.
ySalNumberThe new vertical coordinate.

Returns: SalBoolean. True if the operation is accepted by the SAL window implementation; otherwise, false.

For forms, this also selects manual startup positioning.

Instance member SetModified(bSet)

Sets this control's SAL modification flag.

ParameterTypeDescription
bSetSalBooleanTrue to mark the value modified; false to clear the flag.

Returns: SalBoolean. True if the translated control supports SAL values; otherwise, false.

For editable SAL controls, this also clears the validation flag.

Instance member SetOutlineRedraw(state)

ParameterTypeDescription
stateSalBoolean

Returns: SalBoolean.

Instance member SetPicture(index, picNormal, picSelect)

ParameterTypeDescription
indexSalNumber
picNormalSalNumber
picSelectSalNumber

Returns: SalNumber.

Instance member SetProperty(name, value, length)

Assigns a SAL named property after limiting the value's length.

ParameterTypeDescription
nameSalStringThe property name.
valueSalStringThe value to assign.
lengthSalNumberThe number of leading characters to retain.

Returns: SalBoolean. True if the translated control implements the SAL window contract; otherwise, false.

Instance member SetSelected(node, selected)

Changes a node selection flag through the native tree control.

ParameterTypeDescription
nodeTreeNodeThe node to update. Null is ignored.
selectedBooleanTrue to select the node; false to clear its selection.

Instance member SetSize(width, height)

Sets this control's dimensions in form units.

ParameterTypeDescription
widthSalNumberThe new width.
heightSalNumberThe new height.

Returns: SalBoolean. True if the operation is accepted by the SAL window implementation; otherwise, false.

Instance member SetStyle(style)

ParameterTypeDescription
styleSalNumber

Returns: SalBoolean.

Instance member SetText(text)

Assigns the control's displayed text.

ParameterTypeDescription
textSalStringThe text to assign.

Returns: SalBoolean. True if the translated control exists and assignment completes; otherwise, false.

An empty string is passed as null when assigning combo-box text.

Instance member SetTimer(idEvent, elapseMilliSec)

Creates or updates a native window timer for this control.

ParameterTypeDescription
idEventSalNumberThe timer identifier.
elapseMilliSecSalNumberThe requested interval in milliseconds.

Returns: SalBoolean. True if the native timer was created; otherwise, false.

Instance member SetWindowColor(nColorIndex, nColor)

Assigns a window or table-cell color.

ParameterTypeDescription
nColorIndexSalNumberThe Sys.COLOR_Index* component to change.
nColorSalNumberThe SAL color value to translate and assign.

Returns: SalBoolean. True for a supported color index and resolved control; otherwise, false.

Cell colors apply only to table columns. Window colors on table windows also update their grid styles.

Instance member ShowOutline(level)

ParameterTypeDescription
levelSalNumber

Returns: SalBoolean.

Instance member ShowWindow()

Shows this control or table column.

Returns: SalBoolean. The visibility state before the operation, or false if the control cannot be resolved.

Instance member ShowWindowAndLabel()

Shows this control and its associated label.

Returns: SalBoolean. The control's visibility before the operation, or false if it cannot be resolved.

Instance member TrackPopupMenu(menuName, flags, x, y)

Creates and displays a temporary popup menu at screen coordinates.

ParameterTypeDescription
menuNameSalStringThe menu type name to resolve.
flagsSalNumberSAL TPM_* alignment and cursor-position flags; center alignment and TPM_ContextMenu are unsupported.
xSalNumberThe screen X coordinate, unless TPM_CursorX selects the cursor position.
ySalNumberThe screen Y coordinate, unless TPM_CursorY selects the cursor position.

Returns: SalBoolean. True after the popup is shown; false when the target or menu cannot be resolved.

The previous context menu is restored after display and the temporary menu is queued for disposal.

Instance member TrackPopupMenu(menuType, nFlags, nX, nY)

Creates and displays a popup menu for this outline.

ParameterTypeDescription
menuTypeTypeThe menu type to instantiate.
nFlagsSalNumberThe popup tracking flags.
nXSalNumberThe horizontal popup position, in pixels.
nYSalNumberThe vertical popup position, in pixels.

Returns: SalBoolean. The result returned by SalWindow.TrackPopupMenu.

Instance member UpdateWindow()

Requests an update of this control.

Returns: SalBoolean. True if the operation is accepted by the SAL window implementation; otherwise, false.

Instance member WinHelp(file, command, numData, strData)

Invokes the legacy Windows Help API for this control.

ParameterTypeDescription
fileSalStringThe help file path.
commandSalNumberThe Sys.HELP_* command.
numDataSalNumberThe numeric topic or index for HELP_Context and HELP_SetIndex.
strDataSalStringThe lookup text for HELP_Key.

Returns: SalBoolean. The native help result, or false for an empty file name.

Protected member WndProc(m)

Processes tree notifications and mouse presses, and routes other native messages through the SAL window adapter.

ParameterTypeDescription
m by referenceMessageThe native message and its mutable result.

Instance member Yield()

Dispatches one pending message for this window, or processes application messages when no window handle exists.

Message dispatch can reenter application code.

Events

Instance member MessageActions

SalMessageHandler Occurs when the SAL adapter dispatches a message to registered handlers.

Instance member WindowActions

WindowActionsEventHandler Occurs when this control dispatches a SAL or custom window action.

Inherited By

NameDescription
VisDesktopListBoxDisplays a desktop-style outline of drives and directories.
VisDirTreeListBoxDisplays a directory hierarchy as an outline.

Implements

NameDescription
ISalControl
ISalListControl
ISalWindow