Skip to main content
Version: 2025

VisOutlineListBox

Namespace: PPJ.Runtime.Vis

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

A SAL outline tree with Visual Toolchest node handles, item styling, and drag-and-drop behavior.

public class VisOutlineListBox : TreeView, ISalWindow, ISalControl, ISalListControl

Outline methods distinguish node handles from visible-list indices.

Example:

var tree = new VisOutlineListBox();
SalNumber group = tree.LoadChild(tree.GetRoot(), 0, 0, "Group", 0, 0);
tree.LoadChild(group, 0, 0, "Item", 1, 0);
tree.ShowOutline(2);

Constructors

Instance member VisOutlineListBox()

Initializes SAL window and list-extension state, disables sorting, and attaches outline message handlers.

Properties

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 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 Label

Control: Gets or sets the label associated with this control through its containing SAL form.

Instance member NamedProperties

SalNamedProperties: Gets this window's SAL named-property collection.

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 sText

SalString:

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

Methods

Instance member AddColor(sText, nColor)

ParameterTypeDescription
sTextSalString
nColorSalNumber

Returns: SalNumber.

Instance member AddColorValue(sText, nColor, nValue)

ParameterTypeDescription
sTextSalString
nColorSalNumber
nValueSalNumber

Returns: SalNumber.

Instance member AddFont(sText, hFont)

ParameterTypeDescription
sTextSalString
hFontSalNumber

Returns: SalNumber.

Instance member AddFontValue(sText, hFont, nValue)

ParameterTypeDescription
sTextSalString
hFontSalNumber
nValueSalNumber

Returns: SalNumber.

Instance member AddListItem(sName)

ParameterTypeDescription
sNameSalString

Returns: SalNumber.

Applies the referenced SAL operation to this control.

Instance member AddPicture(sText, hPicNormal, hPicSelect)

ParameterTypeDescription
sTextSalString
hPicNormalSalNumber
hPicSelectSalNumber

Returns: SalNumber.

Instance member AddPictureValue(sText, hPicNormal, hPicSelect, nValue)

ParameterTypeDescription
sTextSalString
hPicNormalSalNumber
hPicSelectSalNumber
nValueSalNumber

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 and is not disposed; otherwise, false.

Instance member CenterWindow()

Centers this window within its parent, owner, or available screen area.

Returns: SalBoolean. True if the centering operation is accepted; false for an unavailable control, design mode, or unavailable screen bounds.

Instance member Clear()

Clears editable text or selection according to the control type.

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

Text fields and labels are emptied; check boxes are unchecked; list selections are cleared. Other control types are left unchanged.

Instance member ClearCursor(nType)

Restores the default cursor for the requested role.

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

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

Only the window role changes the displayed cursor. Drag/drop roles are accepted for SAL windows without changing a cursor.

Instance member ClearList()

Returns: SalBoolean.

Applies the referenced SAL operation to this control.

Instance member Collapse(nIndex)

ParameterTypeDescription
nIndexSalNumber

Returns: SalBoolean.

Instance member DeleteChild(nIndex)

ParameterTypeDescription
nIndexSalNumber

Returns: SalNumber.

Instance member DeleteDescendents(nIndex)

ParameterTypeDescription
nIndexSalNumber

Returns: SalNumber.

Instance member DeleteListItem(nIndex)

ParameterTypeDescription
nIndexSalNumber

Returns: SalNumber.

Applies the referenced SAL operation to this control.

Instance member Demote(nIndex, hPicNormal, hPicSelect)

ParameterTypeDescription
nIndexSalNumber
hPicNormalSalNumber
hPicSelectSalNumber

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(nIndex, nColor)

ParameterTypeDescription
nIndexSalNumber
nColorSalNumber

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.

Protected member Dispose(disposing)

Marks this SAL window disposed before releasing the base control resources.

ParameterTypeDescription
disposingBooleanTrue to release managed resources; false for finalization cleanup.

Instance member DoDragDrop(nSourceIndex, hWndTarget, nTargetIndex, nDropMode)

Moves an outline node to another outline position.

ParameterTypeDescription
nSourceIndexSalNumberThe source visible-item index; -1 denotes the root.
hWndTargetSalWindowHandleThe target outline-list control handle.
nTargetIndexSalNumberThe target visible-item index; -1 denotes the root.
nDropModeSalNumberDROP_Child to append beneath the target, or DROP_Sibling to insert after it.

Returns: SalBoolean. True when the node is moved; false for an unsupported target, invalid nodes, a self/descendant drop, or an unsupported mode.

The delegated operation requires an outline-tree source. Ordinary list and combo items cannot be moved by this tree operation.

Instance member EnableItem(nIndex, nColor)

ParameterTypeDescription
nIndexSalNumber
nColorSalNumber

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.

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

ParameterTypeDescription
nIndexSalNumber

Returns: SalNumber.

Instance member ExpandDescendents(nIndex)

ParameterTypeDescription
nIndexSalNumber

Returns: SalBoolean.

Instance member FindChild(sWindowName)

Searches this window for a child control by name.

ParameterTypeDescription
sWindowNameSalStringThe 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, nValue)

ParameterTypeDescription
hItemSalNumber
nValueSalNumber

Returns: SalNumber.

Instance member FormUnitsToPixels(nFormUnits, bVertical)

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

ParameterTypeDescription
nFormUnitsSalNumberThe length in form units.
bVerticalSalBooleanTrue 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(hWnd)

Resolves a SAL handle to an existing VisOutlineListBox.

ParameterTypeDescription
hWndSalWindowHandleThe control handle to resolve.

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

Throws:

Instance member GetClassName()

Gets the application class name associated with this control.

Returns: SalString. The application class name, an empty string for runtime-defined classes, or a SAL null string when the control cannot be resolved.

Forms are represented by their base type; nested table-window types are resolved to their non-nested base.

Instance member GetColor(nIndex)

ParameterTypeDescription
nIndexSalNumber

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

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

ParameterTypeDescription
nTypeMaskSalNumberThe 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(nIndex)

ParameterTypeDescription
nIndexSalNumber

Returns: SalNumber.

Instance member GetFont(nIndex)

ParameterTypeDescription
nIndexSalNumber

Returns: SalNumber.

Instance member GetFont(sName, nSize, nEnhancement)

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

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

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

Instance member GetItemColor(hItem)

ParameterTypeDescription
hItemSalNumber

Returns: SalNumber.

Instance member GetItemData(hItem, sText, nValue, nItemFlags)

ParameterTypeDescription
hItemSalNumber
sText by referenceSalString
nValue by referenceSalNumber
nItemFlags by referenceSalNumber

Returns: SalBoolean.

Instance member GetItemFlags(hItem)

ParameterTypeDescription
hItemSalNumber

Returns: SalNumber.

Instance member GetItemFont(hItem)

ParameterTypeDescription
hItemSalNumber

Returns: SalNumber.

Instance member GetItemHandle(nIndex)

ParameterTypeDescription
nIndexSalNumber

Returns: SalNumber.

Instance member GetItemIndex(hItem)

ParameterTypeDescription
hItemSalNumber

Returns: SalNumber.

Instance member GetItemPicture(hItem, hPicNormal, hPicSelect)

ParameterTypeDescription
hItemSalNumber
hPicNormal by referenceSalNumber
hPicSelect 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()

Returns: SalNumber.

Applies the referenced SAL operation to this control.

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

Returns: SalNumber.

Applies the referenced SAL operation to this control.

Instance member GetListSelectedItems(nSelectedArray)

ParameterTypeDescription
nSelectedArraySalArray<SalNumber>

Returns: SalBoolean.

Applies the referenced SAL operation to this control.

Instance member GetListSelectedItemsCount()

Returns: SalNumber.

Applies the referenced SAL operation to this control.

Instance member GetLocation(nX, nY)

Reads this control's location in form units.

ParameterTypeDescription
nX by referenceSalNumberReceives the horizontal location.
nY by referenceSalNumberReceives the vertical location.

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

Instance member GetName(sText)

Copies this control's name to the supplied variable.

ParameterTypeDescription
sText 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(nTypeMask)

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

ParameterTypeDescription
nTypeMaskSalNumberThe 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(nIndex, hPicNormal, hPicSelect)

ParameterTypeDescription
nIndexSalNumber
hPicNormal by referenceSalNumber
hPicSelect by referenceSalNumber

Returns: SalNumber.

Instance member GetPrevSibling(hItem)

ParameterTypeDescription
hItemSalNumber

Returns: SalNumber.

Instance member GetProperty(sName, sValue)

Reads a SAL named property into a supplied variable.

ParameterTypeDescription
sNameSalStringThe property name.
sValue 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(sName)

Gets the value of a SAL named property.

ParameterTypeDescription
sNameSalStringThe 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(nWidth, nHeight)

Reads this control's size in form units.

ParameterTypeDescription
nWidth by referenceSalNumberReceives the width.
nHeight 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 GetWindowColor(nColorIndex)

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

ParameterTypeDescription
nColorIndexSalNumberThe Sys.COLOR_Index* color component to read.

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

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(nIndex, sText, nColor)

ParameterTypeDescription
nIndexSalNumber
sTextSalString
nColorSalNumber

Returns: SalNumber.

Instance member InsertColorValue(nIndex, sText, nColor, nValue)

ParameterTypeDescription
nIndexSalNumber
sTextSalString
nColorSalNumber
nValueSalNumber

Returns: SalNumber.

Instance member InsertFont(nIndex, sText, hFont)

ParameterTypeDescription
nIndexSalNumber
sTextSalString
hFontSalNumber

Returns: SalNumber.

Instance member InsertFontValue(nIndex, sText, hFont, nValue)

ParameterTypeDescription
nIndexSalNumber
sTextSalString
hFontSalNumber
nValueSalNumber

Returns: SalNumber.

Instance member InsertListItem(nIndex, sAdd)

ParameterTypeDescription
nIndexSalNumber
sAddSalString

Returns: SalNumber.

Applies the referenced SAL operation to this control.

Instance member InsertPicture(nIndex, sText, hPicNormal, hPicSelect)

ParameterTypeDescription
nIndexSalNumber
sTextSalString
hPicNormalSalNumber
hPicSelectSalNumber

Returns: SalNumber.

Instance member InsertPictureValue(nIndex, sText, hPicNormal, hPicSelect, nValue)

ParameterTypeDescription
nIndexSalNumber
sTextSalString
hPicNormalSalNumber
hPicSelectSalNumber
nValueSalNumber

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

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

ParameterTypeDescription
tClassTypeThe 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(nIDEvent)

Stops an existing timer owned by this control.

ParameterTypeDescription
nIDEventSalNumberThe identifier used when the timer was started.

Returns: SalBoolean. True if the timer was found and stopped; otherwise, false.

The timer remains registered and can be restarted by SetTimer.

Instance member LoadChild(hItemParent, hPicNormal, hPicSelect, sText, nValue, nItemFlags)

ParameterTypeDescription
hItemParentSalNumber
hPicNormalSalNumber
hPicSelectSalNumber
sTextSalString
nValueSalNumber
nItemFlagsSalNumber

Returns: SalNumber.

Instance member LoadChildren(hItemParent, hPicNormal, hPicSelect, sTexts, nValues, nItemFlags)

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

Returns: SalNumber.

Instance member LoadOutline(sBlob)

ParameterTypeDescription
sBlobSalString

Returns: SalNumber.

Instance member LoadOutlineFile(sFileName, hPicParentNormal, hPicParentSelect, hPicChildNormal, hPicChildSelect)

ParameterTypeDescription
sFileNameSalString
hPicParentNormalSalNumber
hPicParentSelectSalNumber
hPicChildNormalSalNumber
hPicChildSelectSalNumber

Returns: SalNumber.

Instance member LoadSibling(hItemBefore, hPicNormal, hPicSelect, sText, nValue, nItemFlags)

ParameterTypeDescription
hItemBeforeSalNumber
hPicNormalSalNumber
hPicSelectSalNumber
sTextSalString
nValueSalNumber
nItemFlagsSalNumber

Returns: SalNumber.

Instance member MoveDown(nIndex)

ParameterTypeDescription
nIndexSalNumber

Returns: SalBoolean.

Instance member MoveUp(nIndex)

ParameterTypeDescription
nIndexSalNumber

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 and sends click notifications for keyboard or mouse selection.

ParameterTypeDescription
eTreeViewEventArgsThe selected node and selection action.

Raises the inherited event first; sends SAM_Click and VTM_Click for user selection actions.

Protected member OnBeforeSelect(e)

Cancels selection of a disabled Visual Toolchest item or an item in a tree with SelectionMode.None.

ParameterTypeDescription
eTreeViewCancelEventArgsThe cancellable selection event, passed to the inherited handler afterwards.

Protected member OnDragDrop(e)

Exposes source and target drop context while invoking SAL and inherited drop handlers.

ParameterTypeDescription
eDragEventArgsThe dropped data and target information.

Clears both window-handle fields in a finally block; retains the computed item indices.

Protected member OnDragEnd(e)

Ends SAL drag handling before raising the inherited drag-end event.

ParameterTypeDescription
eEventArgsThe event data passed to both handlers.

Protected member OnDragEnter(e)

Processes the SAL drag-enter notification before raising the inherited event.

ParameterTypeDescription
eDragEventArgsThe event data passed to both handlers.

Protected member OnDragLeave(e)

Processes the SAL drag-leave notification before raising the inherited event.

ParameterTypeDescription
eEventArgsThe event data passed to both handlers.

Protected member OnDragOver(e)

Processes SAL drag feedback before raising the inherited drag-over event.

ParameterTypeDescription
eDragEventArgsThe event data passed to both handlers.

Protected member OnGotFocus(e)

Dispatches SAL focus-gained processing before raising the inherited focus event.

ParameterTypeDescription
eEventArgsThe focus event data.

Protected member OnItemDrag(e)

Asks SAL handlers whether an automatic drag may start, after raising the inherited event.

ParameterTypeDescription
eItemDragEventArgsThe item being dragged.

Starts dragging only when SAM_DragCanAutoStart is handled with a nonzero return; records the source index and flags.

Protected member OnLostFocus(e)

Dispatches SAL focus-lost processing before raising the inherited focus event.

ParameterTypeDescription
eEventArgsThe focus event data.

Protected member OnNodeMouseClick(e)

Raises the inherited event and sends SAL click messages when the clicked node is selected.

ParameterTypeDescription
eTreeNodeMouseClickEventArgsThe node click event.

Sends both SAM_Click and VTM_Click.

Protected member OnNodeMouseDoubleClick(e)

Raises the inherited event and sends SAM_DoubleClick.

ParameterTypeDescription
eTreeNodeMouseClickEventArgsThe node double-click event.

Protected member OnWebEvent(e)

Processes outline expand/collapse requests in a SAL context, then simulates WinSDK events.

ParameterTypeDescription
eWisejEventArgsThe browser event.

Other events are passed to the inherited handler within the same context.

Protected member OnWebRender(config)

Selects the outline client class and registers critical WinSDK browser events.

ParameterTypeDescription
configObjectThe mutable browser configuration.

Uses the virtual outline client only when virtual scrolling is enabled outside design mode.

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(nMsg, nMywParam, nMylParam)

Queues a SAL window action for later dispatch on the application context.

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

Returns: SalBoolean. True if the action was queued; false if the control is unavailable or disposed.

Instance member Promote(nIndex, hPicNormal, hPicSelect)

ParameterTypeDescription
nIndexSalNumber
hPicNormalSalNumber
hPicSelectSalNumber

Returns: SalBoolean.

Instance member SaveOutline(sBlob)

ParameterTypeDescription
sBlob by referenceSalString

Returns: SalNumber.

Instance member SendMessage(nMsg, nMywParam, nMylParam)

Dispatches a SAL window action synchronously and returns its result.

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

Returns: SalNumber. The action's return value, or zero if the target 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(nIndex, nColor)

ParameterTypeDescription
nIndexSalNumber
nColorSalNumber

Returns: SalNumber.

Instance member SetContextMenu(sMenuName, nFlags)

Creates and assigns a context menu for this control.

ParameterTypeDescription
sMenuNameSalStringThe name used to resolve the menu type.
nFlagsSalNumberUse Sys.CM_TableCell to target the associated table column; other values target the control.

Returns: SalBoolean. True if the menu was created; false if the control or menu type is unavailable or menu creation fails.

Instance member SetContextMenu(menuType, nFlags)

Creates and assigns a context menu for this control.

ParameterTypeDescription
menuTypeTypeThe type of the menu to create.
nFlagsSalNumberUse Sys.CM_TableCell to target the associated table column; other values target the control.

Returns: SalBoolean. True if the menu was created; false if the control or menu type is unavailable or menu creation fails.

Instance member SetCursor(nResourceId, nType)

Assigns a predefined cursor to the requested role.

ParameterTypeDescription
nResourceIdInt32A supported Sys.CURSOR_* cursor identifier.
nTypeSalNumberThe cursor role: Sys.CURSOR_Window, Sys.CURSOR_DragDrop, or Sys.CURSOR_DisableDrop.

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

Only the window role changes the displayed cursor. Drag/drop roles are accepted for SAL windows without changing a cursor.

Instance member SetCursor(sBlob, nType)

Requests a cursor from binary data; this web implementation does not support binary cursor loading.

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

Returns: SalBoolean. Always false.

Instance member SetCursorFile(sFile, nType)

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

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

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

Only the window role changes the displayed cursor. Drag/drop roles are accepted for SAL windows without changing a cursor.

Instance member SetFlags(nIndex, nFlags, bState)

ParameterTypeDescription
nIndexSalNumber
nFlagsSalNumber
bStateSalBoolean

Returns: SalBoolean.

Instance member SetFocus()

Requests keyboard focus for this control.

Returns: SalWindowHandle. The previously focused control's handle, or a null SAL handle when no previous control exists or this target is ineligible.

Hidden or disabled controls and table columns are ineligible.

Instance member SetFont(nIndex, hFont)

ParameterTypeDescription
nIndexSalNumber
hFontSalNumber

Returns: SalNumber.

Instance member SetFont(sName, nSize, nEnhancement)

Creates and assigns a font to this control.

ParameterTypeDescription
sNameSalStringThe font family name.
nSizeSalNumberThe font size in points.
nEnhancementSalNumberThe combined Sys.FONT_Enh* style flags.

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

Instance member SetItemColor(hItem, nColor)

ParameterTypeDescription
hItemSalNumber
nColorSalNumber

Returns: SalBoolean.

Instance member SetItemData(hItem, sText, nValue, nItemFlags)

ParameterTypeDescription
hItemSalNumber
sTextSalString
nValueSalNumber
nItemFlagsSalNumber

Returns: SalNumber.

Instance member SetItemFlags(hItem, nFlags, bState)

ParameterTypeDescription
hItemSalNumber
nFlagsSalNumber
bStateSalBoolean

Returns: SalBoolean.

Instance member SetItemFont(hItem, hFont)

ParameterTypeDescription
hItemSalNumber
hFontSalNumber

Returns: SalBoolean.

Instance member SetItemPicture(hItem, hPicNormal, hPicSelect)

ParameterTypeDescription
hItemSalNumber
hPicNormalSalNumber
hPicSelectSalNumber

Returns: SalBoolean.

Instance member SetItemText(hItem, sText)

ParameterTypeDescription
hItemSalNumber
sTextSalString

Returns: SalBoolean.

Instance member SetItemValue(hItem, nValue)

ParameterTypeDescription
hItemSalNumber
nValueSalNumber

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 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(nX, nY)

Sets this control's location in form units.

ParameterTypeDescription
nXSalNumberThe new horizontal coordinate.
nYSalNumberThe 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(bState)

ParameterTypeDescription
bStateSalBoolean

Returns: SalBoolean.

Instance member SetPicture(nIndex, hPicNormal, hPicSelect)

ParameterTypeDescription
nIndexSalNumber
hPicNormalSalNumber
hPicSelectSalNumber

Returns: SalNumber.

Instance member SetProperty(sName, sValue, nLength)

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

ParameterTypeDescription
sNameSalStringThe property name.
sValueSalStringThe value to assign.
nLengthSalNumberThe number of leading characters to retain.

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

Instance member SetSize(nWidth, nHeight)

Sets this control's dimensions in form units.

ParameterTypeDescription
nWidthSalNumberThe new width.
nHeightSalNumberThe new height.

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

Instance member SetStyle(nStyle)

ParameterTypeDescription
nStyleSalNumber

Returns: SalBoolean.

Instance member SetText(sText)

Assigns the control's text.

ParameterTypeDescription
sTextSalStringThe text to display.

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

Instance member SetTimer(nIDEvent, nElapseMilliSec)

Starts or restarts a timer that sends SAL timer actions to this control.

ParameterTypeDescription
nIDEventSalNumberThe timer identifier sent in the first parameter of each Sys.SAM_Timer action.
nElapseMilliSecSalNumberThe interval between ticks, in milliseconds.

Returns: SalBoolean. True if the operation is accepted by the SAL window implementation; 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(nLevel)

ParameterTypeDescription
nLevelSalNumber

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(sMenuName, nFlags, nX, nY, callback)

Creates and displays a popup menu, disposing it after it closes.

ParameterTypeDescription
sMenuNameSalStringThe name used to resolve the menu type.
nFlagsSalNumberPopup flags controlling right alignment and use of the current cursor coordinates. Center alignment and context-menu flags are not supported.
nXSalNumberThe horizontal screen coordinate in pixels, unless the cursor-X flag is set.
nYSalNumberThe vertical screen coordinate in pixels, unless the cursor-Y flag is set.
callback optionalAction<ContextMenu>An optional callback invoked when the menu closes, before it is disposed.

Returns: SalBoolean. True if the menu was created and shown; otherwise, false.

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

Creates and displays a popup menu, disposing it after it closes.

ParameterTypeDescription
menuTypeTypeThe menu type to instantiate.
nFlagsSalNumberPopup flags controlling right alignment and use of the current cursor coordinates. Center alignment and context-menu flags are not supported.
nXSalNumberThe horizontal screen coordinate in pixels, unless the cursor-X flag is set.
nYSalNumberThe vertical screen coordinate in pixels, unless the cursor-Y flag is set.
callback optionalAction<ContextMenu>An optional callback invoked when the menu closes, before it is disposed.

Returns: SalBoolean. True if the menu was created and shown; otherwise, false.

Instance member UpdateWindow()

Requests an update of this control.

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

Events

Instance member WindowActions

WindowActionsEventHandler Occurs when the control receives a SAL or application-defined window action.

Inherited By

NameDescription
VisDesktopListBoxDisplays a desktop-style outline of the application server's drives and directories.
VisDirTreeListBoxDisplays server directories as an outline, loading subdirectories when nodes expand.

Implements

NameDescription
ISalControl
ISalListControl
ISalWindow