Skip to main content
Version: 2025

SalTreeControl

Namespace: PPJ.Runtime.Windows

Assembly: PPJ.Web.50 (5.0.0.0)

Displays hierarchical SAL tree items with editable labels, tooltips, and window actions.

public class SalTreeControl : TreeView, ISalWindow, ISalControl

Example:

using PPJ.Runtime.Windows;

var tree = new SalTreeControl();
var root = new SalTreeItem("Customers");
root.Nodes.Add(new SalTreeItem("Ada"));
tree.Nodes.Add(root);

Constructors

Instance member SalTreeControl()

Initializes a tree with label editing and node tooltips enabled.

Properties

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 ShowRoot

Boolean: Gets or sets whether existing nodes are grouped under a displayed root.

Enabling creates a non-dynamic root captioned with the control Name and moves top-level nodes beneath it. Disabling promotes its children and removes the root.

Methods

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

Collapses a node.

ParameterTypeDescription
hItemSalNumberThe node handle; zero resolves to the optional displayed root.

Returns: SalBoolean. True when the node exists and the operation is requested; otherwise false.

Instance member DeleteItem(hItem)

Removes a node and its subtree from the tree.

ParameterTypeDescription
hItemSalNumberThe node handle; zero resolves to the optional displayed root.

Returns: SalBoolean. True when the node exists and the operation is requested; otherwise false.

Instance member DemoteItem(hItem)

Appends the node to its previous sibling's parent collection.

ParameterTypeDescription
hItemSalNumberThe node handle; zero resolves to the optional displayed root.

Returns: SalBoolean. True when the node, previous sibling, and that sibling's parent exist; otherwise false.

This implementation does not make the node a child of the previous sibling.

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

Requests in-place editing of a node caption.

ParameterTypeDescription
hItemSalNumberThe node handle; zero resolves to the optional displayed root.

Returns: SalBoolean. True when the node exists and the operation is requested; otherwise false.

Instance member EnableItem(hItem, bEnable)

Changes a node's enabled state.

ParameterTypeDescription
hItemSalNumberThe node handle; zero resolves to the optional displayed root.
bEnableSalBooleanThe new Enabled value.

Returns: SalBoolean. The previous enabled state, or false if the node is absent.

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

Expands a node.

ParameterTypeDescription
hItemSalNumberThe node handle; zero resolves to the optional displayed root.

Returns: SalBoolean. True when the node exists and the operation is requested; otherwise false.

Instance member FindChild(windowName)

ParameterTypeDescription
windowNameSalString

Returns: SalWindowHandle.

Applies the referenced SAL operation to this control.

Instance member FindItemByData(hItem, nData)

Searches SalTreeItem children depth-first for an application value.

ParameterTypeDescription
hItemSalNumberParent handle; zero searches the displayed root's children or the top-level collection.
nDataSalNumberThe application value to match.

Returns: SalNumber. The first matching handle, or SalNumber.Null if absent.

Only SalTreeItem branches are traversed.

Instance member FindItemByTitle(hItem, sTitle)

Searches child nodes depth-first for an exact caption.

ParameterTypeDescription
hItemSalNumberParent handle; zero searches the displayed root's children or the top-level collection.
sTitleSalStringThe exact case-sensitive caption to find.

Returns: SalNumber. The first matching handle, or SalNumber.Null if absent.

Instance member FireWindowActions(msg, mywParam, mylParam)

Synchronously dispatches a SAL message to this control.

ParameterTypeDescription
msgSalNumberThe message identifier.
mywParamSalNumberThe first message parameter.
mylParamSalNumberThe second message parameter.

Returns: SalNumber. The Return value supplied by message processing.

Instance member FormUnitsToPixels(formUnits, vertical)

ParameterTypeDescription
formUnitsSalNumber
verticalSalBoolean

Returns: SalNumber.

Applies the referenced SAL operation to this control.

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

ParameterTypeDescription
typeMaskSalNumber

Returns: SalWindowHandle.

Applies the referenced SAL operation to this control.

Instance member GetFirstItem(hItem)

Reads the first child handle.

ParameterTypeDescription
hItemSalNumberThe parent handle; zero uses the displayed root's children or the top-level collection.

Returns: SalNumber. The first child handle, or zero for an empty or unresolved collection.

Instance member GetFont(name, size, enhancement)

ParameterTypeDescription
name by referenceSalString
size by referenceSalNumber
enhancement by referenceSalNumber

Returns: SalBoolean.

Applies the referenced SAL operation to this control.

Instance member GetItemCount(hItem)

Counts a resolved node's immediate children.

ParameterTypeDescription
hItemSalNumberThe node handle; zero resolves to the optional displayed root.

Returns: SalNumber. The child count, or zero when the node cannot be resolved, including zero without a displayed root.

Instance member GetItemData(hItem)

Reads a SalTreeItem application value.

ParameterTypeDescription
hItemSalNumberThe node handle; zero resolves to the optional displayed root.

Returns: SalNumber. The stored Value, or SalNumber.Null if the node is absent or is not a SalTreeItem.

Instance member GetItemParent(hItem)

Reads a node's parent handle.

ParameterTypeDescription
hItemSalNumberThe node handle; zero resolves to the optional displayed root.

Returns: SalNumber. The related handle, or zero when the node or related node is absent.

Instance member GetItemText(hItem)

Reads a node's caption.

ParameterTypeDescription
hItemSalNumberThe node handle; zero resolves to the optional displayed root.

Returns: SalString. The text, or SalString.Null if the node is absent.

Instance member GetItemTooltip(hItem)

Reads a node's tooltip.

ParameterTypeDescription
hItemSalNumberThe node handle; zero resolves to the optional displayed root.

Returns: SalString. The text, or SalString.Null if the node is absent.

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 GetLocation(x, y)

Copies the translated control location in form units.

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

Returns: SalBoolean. Always true.

Instance member GetName(text)

ParameterTypeDescription
text by referenceSalString

Returns: SalBoolean.

Applies the referenced SAL operation to this control.

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)

ParameterTypeDescription
typeMaskSalNumber

Returns: SalWindowHandle.

Applies the referenced SAL operation to this control.

Instance member GetNextItem(hItem)

Reads a node's next sibling handle.

ParameterTypeDescription
hItemSalNumberThe node handle; zero resolves to the optional displayed root.

Returns: SalNumber. The related handle, or zero when the node or related node is absent.

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

Reads a node's previous sibling handle.

ParameterTypeDescription
hItemSalNumberThe node handle; zero resolves to the optional displayed root.

Returns: SalNumber. The related handle, or zero when the node or related node is absent.

Instance member GetProperty(name, value)

ParameterTypeDescription
nameSalString
value by referenceSalString

Returns: SalBoolean.

Applies the referenced SAL operation to this control.

Instance member GetProperty(name)

ParameterTypeDescription
nameSalString

Returns: SalString.

Applies the referenced SAL operation to this control.

Instance member GetSelectedItem()

Reads the selected node handle.

Returns: SalNumber. The handle, or zero if no node is selected.

Instance member GetSize(width, height)

Copies the translated control size in form units.

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

Returns: SalBoolean. Always true.

Instance member GetText(text, maxLen)

ParameterTypeDescription
text by referenceSalString
maxLenSalNumber

Returns: SalNumber.

Applies the referenced SAL operation to this control.

Instance member GetText(maxLen)

ParameterTypeDescription
maxLenSalNumber

Returns: SalString.

Applies the referenced SAL operation to this control.

Instance member GetWindowColor(colorIndex)

ParameterTypeDescription
colorIndexSalNumber

Returns: SalNumber.

Applies the referenced SAL operation to this control.

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 InsertItem(hItem, nIndex, sTitle)

Inserts a new dynamic SalTreeItem.

ParameterTypeDescription
hItemSalNumberThe parent handle. Zero or an unresolved handle inserts in the top-level collection.
nIndexSalNumberThe insertion position; -1 appends.
sTitleSalStringThe new caption.

Returns: SalNumber. The new node handle.

A zero parent does not select the displayed root for this operation.

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)

ParameterTypeDescription
typeClassType

Returns: SalBoolean.

Applies the referenced SAL operation to this control.

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

Checks whether a node has an individual checkbox.

ParameterTypeDescription
hItemSalNumberThe node handle; zero resolves to the optional displayed root.

Returns: SalBoolean. The node state, or false if it is absent.

Instance member ItemIsChecked(hItem)

Checks whether a node is checked.

ParameterTypeDescription
hItemSalNumberThe node handle; zero resolves to the optional displayed root.

Returns: SalBoolean. The node state, or false if it is absent.

Instance member ItemIsExpanded(hItem)

Checks whether a node is expanded.

ParameterTypeDescription
hItemSalNumberThe node handle; zero resolves to the optional displayed root.

Returns: SalBoolean. The node state, or false if it is absent.

Instance member ItemIsSelected(hItem)

Compares a resolved node to SelectedNode.

ParameterTypeDescription
hItemSalNumberThe node handle; zero resolves to the optional displayed root.

Returns: SalBoolean. True when both references are equal, including when neither resolves to a node.

Instance member ItemsHaveCheckBoxes()

Reads the tree-wide checkbox setting.

Returns: SalBoolean. The CheckBoxes property.

Instance member KillTimer(idEvent)

ParameterTypeDescription
idEventSalNumber

Returns: SalBoolean.

Applies the referenced SAL operation to this control.

Instance member MoveDownItem(hItem)

Moves a child one position down in its parent collection.

ParameterTypeDescription
hItemSalNumberThe node handle; zero resolves to the optional displayed root.

Returns: SalBoolean. True when moved; false for an absent node, no parent, or a node already last.

Instance member MoveItem(hItem, hParentItem, nPosition)

Inserts an existing node into another parent's child collection.

ParameterTypeDescription
hItemSalNumberThe node handle; zero resolves to the optional displayed root.
hParentItemSalNumberThe destination parent handle.
nPositionSalNumberThe destination child position.

Returns: SalBoolean. True when both nodes resolve and insertion completes; otherwise false.

Instance member MoveUpItem(hItem)

Moves a child one position up in its parent collection.

ParameterTypeDescription
hItemSalNumberThe node handle; zero resolves to the optional displayed root.

Returns: SalBoolean. True when moved; false for an absent node, no parent, or a node already first.

Instance member MoveWindow(xOffset, yOffset)

Moves the translated control by an offset in form units.

ParameterTypeDescription
xOffsetSalNumberHorizontal displacement.
yOffsetSalNumberVertical displacement.

Returns: SalBoolean. The result of SalWindow.Move.

Protected member OnAfterCollapse(e)

Sends SAM_ItemCollapsed with the node handle before raising the inherited event.

ParameterTypeDescription
eTreeViewEventArgsThe node event data.

Protected member OnAfterExpand(e)

Sends SAM_ItemExpanded with the node handle before raising the inherited event.

ParameterTypeDescription
eTreeViewEventArgsThe node event data.

Protected member OnAfterSelect(e)

Updates modification state, raises the inherited event, and sends SAM_ItemSelected.

ParameterTypeDescription
eTreeViewEventArgsThe selected node and selection action.

Mouse and keyboard selections mark the control modified; Unknown clears the flag. The message carries the selected node handle.

Protected member OnBeforeLabelEdit(e)

Cancels editing unless the node is an editable SalTreeItem, then raises the inherited event.

ParameterTypeDescription
eNodeLabelEditEventArgsThe cancellable label-edit event.

Protected member OnDoubleClick(e)

Raises the inherited event, then sends SAM_DoubleClick with client-relative cursor coordinates.

ParameterTypeDescription
eEventArgsThe double-click event data.

Protected member OnNodeMouseClick(e)

Sends SAM_ItemClicked with the node handle before raising the inherited event.

ParameterTypeDescription
eTreeNodeMouseClickEventArgsThe clicked node and mouse information.

Protected member OnWebEvent(e)

Processes the inherited browser event, then simulates WinSDK events.

ParameterTypeDescription
eWisejEventArgsThe browser event.

Protected member OnWebRender(config)

Selects the standard or virtual SAL tree client.

ParameterTypeDescription
configObjectThe mutable browser configuration.

Instance member PixelsToFormUnits(numPixels, vertical)

ParameterTypeDescription
numPixelsSalNumber
verticalSalBoolean

Returns: SalNumber.

Applies the referenced SAL operation to this control.

Instance member PostMessage(msg, mywParam, mylParam)

ParameterTypeDescription
msgSalNumber
mywParamSalNumber
mylParamSalNumber

Returns: SalBoolean.

Applies the referenced SAL operation to this control.

Instance member PromoteItem(hItem)

Appends the node to its existing parent's child collection.

ParameterTypeDescription
hItemSalNumberThe node handle; zero resolves to the optional displayed root.

Returns: SalBoolean. True when the node and parent exist; otherwise false.

This implementation does not move the node to its grandparent.

Instance member Reset(bRemove)

Clears all children or removes dynamic nodes from the root collection.

ParameterTypeDescription
bRemoveSalBooleanTrue to clear all children; false to remove only dynamic nodes at that collection level.

Returns: SalBoolean. Always true.

Preserves the optional displayed root. With bRemove false, non-SalTreeItem nodes count as dynamic; descendants of retained static nodes are not traversed.

Instance member SendMessage(msg, mywParam, mylParam)

ParameterTypeDescription
msgSalNumber
mywParamSalNumber
mylParamSalNumber

Returns: SalNumber.

Applies the referenced SAL operation to this control.

Instance member SendMessageToChildren(msg, mywParam, mylParam)

ParameterTypeDescription
msgSalNumber
mywParamSalNumber
mylParamSalNumber

Returns: SalBoolean.

Applies the referenced SAL operation to this control.

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, flags)

ParameterTypeDescription
menuTypeType
flagsSalNumber

Returns: SalBoolean.

Applies the referenced SAL operation to this control.

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 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(name, size, enhancement)

ParameterTypeDescription
nameSalString
sizeSalNumber
enhancementSalNumber

Returns: SalBoolean.

Applies the referenced SAL operation to this control.

Instance member SetItemChecked(hItem, bChecked)

Sets a node's checked state.

ParameterTypeDescription
hItemSalNumberThe node handle; zero resolves to the optional displayed root.
bCheckedSalBooleanThe new checked state.

Returns: SalBoolean. True when the required node exists; otherwise false.

Instance member SetItemData(hItem, nValue)

Replaces a SalTreeItem application value.

ParameterTypeDescription
hItemSalNumberThe node handle; zero resolves to the optional displayed root.
nValueSalNumberThe new value.

Returns: SalNumber. The previous value; if no SalTreeItem resolves, the implementation returns SalBoolean.Null converted to SalNumber.

Instance member SetItemEditable(hItem, bEditable)

Sets whether a SalTreeItem permits label editing.

ParameterTypeDescription
hItemSalNumberThe node handle; zero resolves to the optional displayed root.
bEditableSalBooleanThe new editing permission.

Returns: SalBoolean. True when the required node exists; otherwise false.

Instance member SetItemFontEnh(hItem, nFontEnh)

Applies font enhancements using the tree's font family and point size.

ParameterTypeDescription
hItemSalNumberThe node handle; zero resolves to the optional displayed root.
nFontEnhSalNumberThe SAL font enhancement flags.

Returns: SalBoolean. True when the required node exists; otherwise false.

Instance member SetItemImage(hItem, bSelected, sImageFile)

Assigns a node picture loaded from a server file.

ParameterTypeDescription
hItemSalNumberThe node handle; zero resolves to the optional displayed root.
bSelectedSalBooleanTrue to change the selected-state picture; false for the normal picture.
sImageFileSalStringThe image filename, or empty to remove the current image-list entry.

Returns: SalBoolean. False for an absent node or missing nonempty file; true when applied.

Instance member SetItemImageFromBinary(hItem, bSelected, nFormat, bPicture)

Assigns a node picture decoded from binary image data.

ParameterTypeDescription
hItemSalNumberThe node handle; zero resolves to the optional displayed root.
bSelectedSalBooleanTrue to change the selected-state picture; false for the normal picture.
nFormatSalNumberThe PIC_Format* code used by SalPicture.GetImageFromBlob.
bPictureSalBinaryThe encoded image data; absent decoded data removes the current image-list entry.

Returns: SalBoolean. True when the node exists and decoding completes; otherwise false.

Instance member SetItemImageFromResource(hItem, bSelected, tResource)

Assigns a node picture from a SAL resource.

ParameterTypeDescription
hItemSalNumberThe node handle; zero resolves to the optional displayed root.
bSelectedSalBooleanTrue to change the selected-state picture; false for the normal picture.
tResourceSalResourceThe resource; null or a resource without an image removes the current image-list entry.

Returns: SalBoolean. True when the node exists and the operation completes; otherwise false.

Instance member SetItemText(hItem, sText)

Changes a node caption.

ParameterTypeDescription
hItemSalNumberThe node handle; zero resolves to the optional displayed root.
sTextSalStringThe new caption.

Returns: SalBoolean. True when the required node exists; otherwise false.

Instance member SetItemTextColor(hItem, nColor)

Changes a node's foreground color.

ParameterTypeDescription
hItemSalNumberThe node handle; zero resolves to the optional displayed root.
nColorSalNumberThe SAL color to apply.

Returns: SalBoolean. True when the required node exists; otherwise false.

Instance member SetItemTooltip(hItem, sTooltip)

Changes a node tooltip.

ParameterTypeDescription
hItemSalNumberThe node handle; zero resolves to the optional displayed root.
sTooltipSalStringThe new tooltip.

Returns: SalBoolean. True when the required node exists; otherwise false.

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 SetLocation(x, y)

Sets the translated control location in form units.

ParameterTypeDescription
xSalNumberHorizontal coordinate.
ySalNumberVertical coordinate.

Returns: SalBoolean. The result of SalWindow.SetLocation.

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 SetProperty(name, value, length)

Stores a named string property after limiting its length.

ParameterTypeDescription
nameSalStringThe case-sensitive property name.
valueSalStringThe source string.
lengthSalNumberThe maximum prefix length passed to SalString.Left.

Returns: SalBoolean. The result of the named-property assignment.

Instance member SetSelectedItem(hItem)

Selects a node.

ParameterTypeDescription
hItemSalNumberThe node handle; zero resolves to the optional displayed root.

Returns: SalBoolean. True when the node exists and the operation is requested; otherwise false.

Instance member SetSize(width, height)

Sets the translated control size in form units.

ParameterTypeDescription
widthSalNumberRequested width.
heightSalNumberRequested height.

Returns: SalBoolean. The result of SalWindow.SetSize.

Instance member SetText(text)

ParameterTypeDescription
textSalString

Returns: SalBoolean.

Applies the referenced SAL operation to this control.

Instance member SetTimer(idEvent, elapseMilliSec)

ParameterTypeDescription
idEventSalNumber
elapseMilliSecSalNumber

Returns: SalBoolean.

Applies the referenced SAL operation to this control.

Instance member SetWindowColor(colorIndex, color)

ParameterTypeDescription
colorIndexSalNumber
colorSalNumber

Returns: SalBoolean.

Applies the referenced SAL operation to this control.

Instance member ShowItemCheckBox(hItem, bShow)

Changes a node's individual checkbox visibility.

ParameterTypeDescription
hItemSalNumberThe node handle; zero resolves to the optional displayed root.
bShowSalBooleanWhether to show the checkbox.

Returns: SalBoolean. True when the required node exists; otherwise false.

Instance member ShowItemsCheckBoxes(bShow)

Changes the tree-wide checkbox setting.

ParameterTypeDescription
bShowSalBooleanThe new CheckBoxes value.

Returns: SalBoolean. Always true.

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)

Displays a popup menu for this control.

ParameterTypeDescription
menuNameSalStringThe popup menu class name.
flagsSalNumberPopup positioning flags.
xSalNumberHorizontal coordinate in pixels.
ySalNumberVertical coordinate in pixels.

Returns: SalBoolean. The result of SalWindow.TrackPopupMenu.

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

Displays a popup menu for this control.

ParameterTypeDescription
menuTypeTypeThe popup menu type.
flagsSalNumberPopup positioning flags.
xSalNumberHorizontal coordinate in pixels.
ySalNumberVertical coordinate in pixels.

Returns: SalBoolean. The result of 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.

Events

Instance member WindowActions

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

Implements

NameDescription
ISalControlExposes a SAL control's data type, value, and modification state.
ISalWindowProvides SAL window actions, named properties, and access to a window's runtime implementation.