Skip to main content
Version: 2025

SalWindowHandle

Namespace: PPJ.Runtime

Assembly: PPJ.Web.50 (5.0.0.0)

Represents a SAL handle and exposes operations on the associated window or control.

public struct SalWindowHandle : ValueType, IConvertible, IComparable, ISalType, ISerializable, IXmlSerializable, IWisejSerializable

Stores a Wisej handle identifier. Control lookup is performed when an operation needs the control; a nonzero value alone does not establish that a control is still available.

Example:

using PPJ.Runtime;

void SetCaption(Wisej.Web.Control control)
{
SalWindowHandle window = control;
if (!window.IsNull)
window.SetText("Ready");
}

Constructors

Instance member SalWindowHandle(handle)

Initializes a SAL window handle from an identifier.

NameTypeDescription
handleIntPtrThe handle value, including zero.

Stores the identifier without validating it.

Instance member SalWindowHandle(ctrl)

Initializes a handle for the actual derived control.

NameTypeDescription
ctrlControlThe control to wrap, or null for a zero handle.

Stores the derived control's handle.

Properties

Instance member Control

Control: Gets the control currently associated with the handle.

Instance member IsNull

Boolean: Gets whether the current handle value is zero.

Instance member Value

IntPtr: Gets the current pointer-sized handle value.

Methods

Instance member AddListItem(sName)

ParameterTypeDescription
sNameSalString

Returns: SalNumber.

Applies the referenced operation to the control represented by this handle.

Instance member AnyRows(nFlagsOn, nFlagsOff)

ParameterTypeDescription
nFlagsOnSalNumber
nFlagsOffSalNumber

Returns: SalBoolean.

Applies the referenced operation to the control represented by this handle.

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

Clears the image assigned to the associated control.

Returns: SalBoolean. True if the control supports image assignment; otherwise, false.

Instance member ClearList()

Returns: SalBoolean.

Applies the referenced operation to the control represented by this handle.

Instance member ClearSelection()

Returns: SalBoolean.

Applies the referenced operation to the control represented by this handle.

Instance member ColumnAverage(nColumnID, nFlagsOn, nFlagsOff)

ParameterTypeDescription
nColumnIDSalNumber
nFlagsOnSalNumber
nFlagsOffSalNumber

Returns: SalNumber.

Applies the referenced operation to the control represented by this handle.

Instance member ColumnSum(nColumnID, nFlagsOn, nFlagsOff)

ParameterTypeDescription
nColumnIDSalNumber
nFlagsOnSalNumber
nFlagsOffSalNumber

Returns: SalNumber.

Applies the referenced operation to the control represented by this handle.

Instance member CompareTo(obj)

Compares this handle with a boxed SAL window handle.

ParameterTypeDescription
objObjectA boxed SalWindowHandle.

Returns: Int32. The result of comparing the two handle identifiers as signed 32-bit integers.

A null argument or a different boxed type cannot be cast to SalWindowHandle. Large native identifiers can overflow the 32-bit conversion.

Instance member CompareTo(handle)

Compares handle identifiers as signed 32-bit integers.

ParameterTypeDescription
handleSalWindowHandleThe handle to compare.

Returns: Int32. A negative value, zero, or a positive value when this identifier precedes, equals, or follows the argument.

The conversion can overflow for native identifiers outside the 32-bit range.

Instance member CopyRows(nFlagsOn, nFlagsOff)

ParameterTypeDescription
nFlagsOnSalNumber
nFlagsOffSalNumber

Returns: SalBoolean.

Applies the referenced operation to the control represented by this handle.

Instance member CreateColumn(nColumnPos, nDispWidth, nMaxChars, sTitle)

ParameterTypeDescription
nColumnPosSalNumber
nDispWidthSalNumber
nMaxCharsSalNumber
sTitleSalString

Returns: SalNumber.

Applies the referenced operation to the control represented by this handle.

Instance member CreateColumnEx(nColumnPos, nDispWidth, sTitle, nMaxChars, nDatatype)

ParameterTypeDescription
nColumnPosSalNumber
nDispWidthSalNumber
sTitleSalString
nMaxCharsSalNumber
nDatatypeSalNumber

Returns: SalNumber.

Applies the referenced operation to the control represented by this handle.

Instance member DefineCheckBoxColumn(nFlags, sCheckedValue, sUncheckedValue)

ParameterTypeDescription
nFlagsSalNumber
sCheckedValueSalString
sUncheckedValueSalString

Returns: SalBoolean.

Applies the referenced operation to the control represented by this handle.

Instance member DefineDropDownListColumn(nFlags, nLines)

ParameterTypeDescription
nFlagsSalNumber
nLinesSalNumber

Returns: SalBoolean.

Applies the referenced operation to the control represented by this handle.

Instance member DefinePopupEditColumn(nFlags, nLines)

ParameterTypeDescription
nFlagsSalNumber
nLinesSalNumber

Returns: SalBoolean.

Applies the referenced operation to the control represented by this handle.

Instance member DefineRowHeader(sTitle, nWidth, nFlags, column)

ParameterTypeDescription
sTitleSalString
nWidthSalNumber
nFlagsSalNumber
columnControl

Returns: SalBoolean.

Applies the referenced operation to the control represented by this handle.

Instance member DefineSplitWindow(nRowsLowerHalf, bDragAdjust)

ParameterTypeDescription
nRowsLowerHalfSalNumber
bDragAdjustSalBoolean

Returns: SalBoolean.

Applies the referenced operation to the control represented by this handle.

Instance member DeleteListItem(nIndex)

ParameterTypeDescription
nIndexSalNumber

Returns: SalNumber.

Applies the referenced operation to the control represented by this handle.

Instance member DeleteRow(nRow, nFlag)

ParameterTypeDescription
nRowSalNumber
nFlagSalNumber

Returns: SalBoolean.

Applies the referenced operation to the control represented by this handle.

Instance member DeleteSelected(hSql)

ParameterTypeDescription
hSqlSalSqlHandle

Returns: SalBoolean.

Applies the referenced operation to the control represented by this handle.

Instance member DeleteSelected(hSql, errorHandler)

ParameterTypeDescription
hSqlSalSqlHandle
errorHandlerWhenSqlErrorHandler

Returns: SalBoolean.

Applies the referenced operation to the control represented by this handle.

Instance member DestroyColumns()

Returns: SalBoolean.

Applies the referenced operation to the control represented by this handle.

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 DoDeletes(hSql, nFlagsOn)

ParameterTypeDescription
hSqlSalSqlHandle
nFlagsOnSalNumber

Returns: SalBoolean.

Applies the referenced operation to the control represented by this handle.

Instance member DoDeletes(hSql, nFlagsOn, errorHandler)

ParameterTypeDescription
hSqlSalSqlHandle
nFlagsOnSalNumber
errorHandlerWhenSqlErrorHandler

Returns: SalBoolean.

Applies the referenced operation to the control represented by this handle.

Instance member DoInserts(hSql, bClearFlags)

ParameterTypeDescription
hSqlSalSqlHandle
bClearFlagsSalBoolean

Returns: SalBoolean.

Applies the referenced operation to the control represented by this handle.

Instance member DoInserts(hSql, bClearFlags, errorHandler)

ParameterTypeDescription
hSqlSalSqlHandle
bClearFlagsSalBoolean
errorHandlerWhenSqlErrorHandler

Returns: SalBoolean.

Applies the referenced operation to the control represented by this handle.

Instance member DoUpdates(hSql, bClearFlags)

ParameterTypeDescription
hSqlSalSqlHandle
bClearFlagsSalBoolean

Returns: SalBoolean.

Applies the referenced operation to the control represented by this handle.

Instance member DoUpdates(hSql, bClearFlags, errorHandler)

ParameterTypeDescription
hSqlSalSqlHandle
bClearFlagsSalBoolean
errorHandlerWhenSqlErrorHandler

Returns: SalBoolean.

Applies the referenced operation to the control represented by this handle.

Instance member DrawMenuBar()

Returns: SalBoolean.

Applies the referenced operation to the control represented by this handle.

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

ParameterTypeDescription
nReturnSalNumber

Returns: SalBoolean.

Applies the referenced operation to the control represented by this handle.

Instance member FetchRow(nRow)

ParameterTypeDescription
nRowSalNumber

Returns: SalNumber.

Applies the referenced operation to the control represented by this handle.

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

ParameterTypeDescription
nameString

Returns: Control.

Applies the referenced operation to the control represented by this handle.

Instance member FindMember(name)

ParameterTypeDescription
nameString

Returns: ReferenceInfo.

Applies the referenced operation to the control represented by this handle.

Instance member FindNextRow(nRow, nFlagsOn, nFlagsOff)

ParameterTypeDescription
nRow by referenceSalNumber
nFlagsOnSalNumber
nFlagsOffSalNumber

Returns: SalBoolean.

Applies the referenced operation to the control represented by this handle.

Instance member FindPrevRow(nRow, nFlagsOn, nFlagsOff)

ParameterTypeDescription
nRow by referenceSalNumber
nFlagsOnSalNumber
nFlagsOffSalNumber

Returns: SalBoolean.

Applies the referenced operation to the control represented by this handle.

Instance member FireWindowActions(nMsg, nMywParam, nMylParam)

Invokes the SAL action dispatch pipeline for this control.

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

Returns: SalNumber. The return value in the dispatched action's event data.

Instance member FireWindowActionsToChildren(nMsg, nMywParam, nMylParam)

ParameterTypeDescription
nMsgInt32
nMywParamSalNumber
nMylParamSalNumber

Returns: SalBoolean.

Applies the referenced operation to the control represented by this handle.

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

ParameterTypeDescription
nType by referenceSalNumber

Returns: SalBoolean.

Applies the referenced operation to the control represented by this handle.

Instance member GetCellType()

Returns the cell-type code of the associated table column.

Returns: SalNumber. The cell-type code, or zero if the handle does not resolve to a table column.

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

ParameterTypeDescription
nFlagsSalNumber

Returns: SalBoolean.

Applies the referenced operation to the control represented by this handle.

Instance member GetColumnID()

Returns: SalNumber.

Applies the referenced operation to the control represented by this handle.

Instance member GetColumnPosition()

Returns: SalNumber.

Applies the referenced operation to the control represented by this handle.

Instance member GetColumnText(nColumnID, sText)

ParameterTypeDescription
nColumnIDSalNumber
sText by referenceSalString

Returns: SalBoolean.

Applies the referenced operation to the control represented by this handle.

Instance member GetColumnText(nColumnID)

Returns the value text for a column in the table's current context row.

ParameterTypeDescription
nColumnIDSalNumberThe column identifier.

Returns: SalString. The column text, or SAL null when this handle does not resolve to a table.

Instance member GetColumnTitle(sText, nMaxLen)

ParameterTypeDescription
sText by referenceSalString
nMaxLenSalNumber

Returns: SalNumber.

Applies the referenced operation to the control represented by this handle.

Instance member GetColumnTitle(nMaxLen)

Returns the title of the associated table column.

ParameterTypeDescription
nMaxLenSalNumberThe maximum number of title characters to return.

Returns: SalString. The column title, or SAL null if the handle does not resolve to a table column.

Instance member GetColumnWidth(nFormUnits)

ParameterTypeDescription
nFormUnits by referenceSalNumber

Returns: SalBoolean.

Applies the referenced operation to the control represented by this handle.

Instance member GetColumnWidth()

Returns the width of the associated table column in form units.

Returns: SalNumber. The column width, or zero if the handle does not resolve to a table column.

Instance member GetColumnWindow(nCol, nFlags)

ParameterTypeDescription
nColSalNumber
nFlagsSalNumber

Returns: SalWindowHandle.

Applies the referenced operation to the control represented by this handle.

Instance member GetContextRow()

Returns: SalNumber.

Applies the referenced operation to the control represented by this handle.

Instance member GetControlType()

Gets the SAL window type of this control.

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

Instance member GetDataLength()

Returns: SalNumber.

Applies the referenced operation to the control represented by this handle.

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

Returns: SalWindowHandle.

Applies the referenced operation to the control represented by this handle.

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

Retrieves the display format of an edit-capable control.

ParameterTypeDescription
sPicture by referenceSalStringReceives the format on success; unchanged if no format is available.

Returns: SalBoolean. True if a non-null format was obtained; otherwise, false.

Instance member GetFormat()

Returns: SalString.

Applies the referenced operation to the control represented by this handle.

Instance member GetFormatCode()

Returns: SalNumber.

Applies the referenced operation to the control represented by this handle.

Instance member GetFormattedText(sText, bFormat)

Retrieves the control text with optional display formatting.

ParameterTypeDescription
sText by referenceSalStringReceives the result when text is available; unchanged otherwise.
bFormatSalBooleanTrue to apply display formatting; false to request the underlying text.

Returns: SalBoolean. True if text was obtained; otherwise, false.

Instance member GetFormattedText(bFormat)

ParameterTypeDescription
bFormatSalBoolean

Returns: SalString.

Applies the referenced operation to the control represented by this handle.

Instance member GetImageBytes(sImageBytes, nType)

Encodes the current image as binary data and reports its format.

ParameterTypeDescription
sImageBytes by referenceSalStringReceives the image data, or a null-valued buffer when no image is available.
nType by referenceSalNumberReceives the image-type code.

Returns: SalNumber. The byte count, or zero when no image data is available.

Instance member GetImageDescription(sDesc, nMaxLen)

Retrieves the Gupta image-format description.

ParameterTypeDescription
sDesc by referenceSalStringReceives the description, or an empty string if no image is available.
nMaxLenSalNumberThe maximum number of characters to copy.

Returns: SalNumber. The number of characters copied.

Instance member GetImageDescription(nMaxLen)

Retrieves the Gupta image-format description.

ParameterTypeDescription
nMaxLenSalNumberThe maximum number of characters to return.

Returns: SalString. The truncated description, or an empty string if no image is available.

Instance member GetImageString(nFormat, sPict)

Encodes the current image in a requested SAL image representation.

ParameterTypeDescription
nFormatSalNumberThe PIC_Format* encoding selector.
sPict by referenceSalStringReceives the encoded image data.

Returns: SalNumber. The number of encoded bytes.

The object format includes a Gupta header and requires an available image. Other formats can return an empty blob when no image is available.

Instance member GetImageString(nFormat)

Encodes the current image in a requested SAL image representation.

ParameterTypeDescription
nFormatSalNumberThe PIC_Format* encoding selector.

Returns: SalString. The encoded image buffer.

The object format includes a Gupta header and requires an available image. Other formats can return an empty blob when no image is available.

Instance member GetInputMask(sMask)

Retrieves the input mask of an edit-capable control.

ParameterTypeDescription
sMask by referenceSalStringReceives the input mask when accepted; unchanged when the method returns false.

Returns: SalBoolean. False for an empty mask; otherwise, true. An unsupported control produces a SAL null mask and true.

Instance member GetInputMask()

Returns: SalString.

Applies the referenced operation to the control represented by this handle.

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

ParameterTypeDescription
nLines by referenceSalNumber

Returns: SalBoolean.

Applies the referenced operation to the control represented by this handle.

Instance member GetLinesPerRow()

Returns the configured number of display lines per table row.

Returns: SalNumber. The line count, or zero if this handle does not resolve to a table.

Instance member GetListItemsCount()

Returns: SalNumber.

Applies the referenced operation to the control represented by this handle.

Instance member GetListItemState(nIndex)

ParameterTypeDescription
nIndexSalNumber

Returns: SalBoolean.

Applies the referenced operation to the control represented by this handle.

Instance member GetListItemText(nIndex, sText)

ParameterTypeDescription
nIndexSalNumber
sText by referenceSalString

Returns: SalNumber.

Applies the referenced operation to the control represented by this handle.

Instance member GetListItemText(nIndex)

ParameterTypeDescription
nIndexSalNumber

Returns: SalString.

Applies the referenced operation to the control represented by this handle.

Instance member GetListItemTextLength(nIndex)

ParameterTypeDescription
nIndexSalNumber

Returns: SalNumber.

Applies the referenced operation to the control represented by this handle.

Instance member GetListSelectedFile(sFileName)

ParameterTypeDescription
sFileName by referenceSalString

Returns: SalBoolean.

Applies the referenced operation to the control represented by this handle.

Instance member GetListSelectedFile()

Returns: SalString.

Applies the referenced operation to the control represented by this handle.

Instance member GetListSelectedIndex()

Returns: SalNumber.

Applies the referenced operation to the control represented by this handle.

Instance member GetListSelectedItems(nSelectedArray)

ParameterTypeDescription
nSelectedArraySalArray<SalNumber>

Returns: SalBoolean.

Applies the referenced operation to the control represented by this handle.

Instance member GetListSelectedItemsCount()

Returns: SalNumber.

Applies the referenced operation to the control represented by this handle.

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

Returns: SalNumber.

Applies the referenced operation to the control represented by this handle.

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 GetObjectData(info, context)

Serializes the current handle identifier.

ParameterTypeDescription
infoSerializationInfoReceives the Handle entry.
contextStreamingContextThe serialization context; not used by this implementation.

The data records a runtime identifier, not a portable description of a window.

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 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 GetRowFlags(nRow, nFlags)

ParameterTypeDescription
nRowSalNumber
nFlagsSalNumber

Returns: SalBoolean.

Applies the referenced operation to the control represented by this handle.

Instance member GetScrollBarPosition(nPos)

Retrieves the position of the associated scrolling control.

ParameterTypeDescription
nPos by referenceSalNumberReceives the current position, or zero for a control of a different type.

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

Uses a Wisej TrackBar.

Instance member GetScrollBarPosition()

Returns: SalNumber.

Applies the referenced operation to the control represented by this handle.

Instance member GetScrollBarRange(nMin, nMax, nLine, nPage)

ParameterTypeDescription
nMin by referenceSalNumber
nMax by referenceSalNumber
nLine by referenceSalNumber
nPage by referenceSalNumber

Returns: SalBoolean.

Applies the referenced operation to the control represented by this handle.

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 GetStatusBarText(sText, nMaxLen)

Reads the owning form's status-bar text.

ParameterTypeDescription
sText by referenceSalStringReceives the truncated status text, or an empty string if no status bar is found.
nMaxLenSalNumberThe maximum number of characters to copy.

Returns: SalNumber. The number of characters copied.

Instance member GetStatusBarText(nMaxLen)

Reads the owning form's status-bar text.

ParameterTypeDescription
nMaxLenSalNumberThe maximum number of characters to return.

Returns: SalString. The truncated text, or an empty string if no status bar is found.

Instance member GetTableFlags(nFlags)

ParameterTypeDescription
nFlagsSalNumber

Returns: SalBoolean.

Applies the referenced operation to the control represented by this handle.

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

Retrieves control text with input-mask literals removed.

ParameterTypeDescription
sText by referenceSalStringReceives the unmasked text on success; unchanged when the control is unavailable.

Returns: SalBoolean. True if the control was available; otherwise, false.

Instance member GetTextUnmasked()

Returns: SalString.

Applies the referenced operation to the control represented by this handle.

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 HitTest(nX, nY, nRow, hWndCol, nFlags)

ParameterTypeDescription
nXSalNumber
nYSalNumber
nRow by referenceSalNumber
hWndCol by referenceSalWindowHandle
nFlags by referenceSalNumber

Returns: SalBoolean.

Applies the referenced operation to the control represented by this handle.

Instance member InsertListItem(nIndex, sAdd)

ParameterTypeDescription
nIndexSalNumber
sAddSalString

Returns: SalNumber.

Applies the referenced operation to the control represented by this handle.

Instance member InsertRow(nRow)

ParameterTypeDescription
nRowSalNumber

Returns: SalNumber.

Applies the referenced operation to the control represented by this handle.

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

Returns: SalBoolean.

Applies the referenced operation to the control represented by this handle.

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

Returns: SalBoolean.

Applies the referenced operation to the control represented by this handle.

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

Returns: SalBoolean.

Applies the referenced operation to the control represented by this handle.

Instance member IsValidDateTime()

Returns: SalBoolean.

Applies the referenced operation to the control represented by this handle.

Instance member IsValidDecimal(nPrecision, nScale)

ParameterTypeDescription
nPrecisionSalNumber
nScaleSalNumber

Returns: SalBoolean.

Applies the referenced operation to the control represented by this handle.

Instance member IsValidInteger()

Returns: SalBoolean.

Applies the referenced operation to the control represented by this handle.

Instance member IsValidNumber()

Returns: SalBoolean.

Applies the referenced operation to the control represented by this handle.

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

Returns: SalBoolean.

Applies the referenced operation to the control represented by this handle.

Instance member KillFocusRow()

Returns: SalBoolean.

Applies the referenced operation to the control represented by this handle.

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

Instance member PasteRows()

Returns: SalBoolean.

Applies the referenced operation to the control represented by this handle.

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 Populate(hSql, sSelect, nMethod)

ParameterTypeDescription
hSqlSalSqlHandle
sSelectSalString
nMethodSalNumber

Returns: SalBoolean.

Applies the referenced operation to the control represented by this handle.

Instance member Populate(hSql, sSelect, nMethod, errorHandler)

ParameterTypeDescription
hSqlSalSqlHandle
sSelectSalString
nMethodSalNumber
errorHandlerWhenSqlErrorHandler

Returns: SalBoolean.

Applies the referenced operation to the control represented by this handle.

Instance member Populate(hSql, sSelect)

Populates the associated table from a query using TBL_FillAll.

ParameterTypeDescription
hSqlSalSqlHandleThe SQL handle to execute the query.
sSelectSalStringThe SELECT statement.

Returns: SalBoolean. The status returned by Sal.TblPopulate for the query.

Uses TBL_FillAll as the population method.

Instance member Populate(hSql, sSelect, errorHandler)

Populates the associated table from a query using TBL_FillAll.

ParameterTypeDescription
hSqlSalSqlHandleThe SQL handle to execute the query.
sSelectSalStringThe SELECT statement.
errorHandlerWhenSqlErrorHandlerThe SQL error callback used by the population operation.

Returns: SalBoolean. The status returned by Sal.TblPopulate for the query.

Uses TBL_FillAll as the population method.

Instance member PopulateList(hSql, sSelect)

ParameterTypeDescription
hSqlSalSqlHandle
sSelectSalString

Returns: SalBoolean.

Applies the referenced operation to the control represented by this handle.

Instance member PopulateList(hSql, sSelect, errorHandler)

ParameterTypeDescription
hSqlSalSqlHandle
sSelectSalString
errorHandlerWhenSqlErrorHandler

Returns: SalBoolean.

Applies the referenced operation to the control represented by this handle.

Instance member PopulateListFiles(ctrlPath, sPathName, nAttributes)

ParameterTypeDescription
ctrlPathControl
sPathName by referenceSalString
nAttributesSalNumber

Returns: SalBoolean.

Applies the referenced operation to the control represented by this handle.

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 QueryCheckBoxColumn(nFlags, sCheckedValue, sUncheckedValue)

ParameterTypeDescription
nFlags by referenceSalNumber
sCheckedValue by referenceSalString
sUncheckedValue by referenceSalString

Returns: SalBoolean.

Applies the referenced operation to the control represented by this handle.

Instance member QueryDropDownListColumn(nFlags, nLines)

ParameterTypeDescription
nFlags by referenceSalNumber
nLines by referenceSalNumber

Returns: SalBoolean.

Applies the referenced operation to the control represented by this handle.

Instance member QueryFocusCell(nRow, hWndCol)

ParameterTypeDescription
nRow by referenceSalNumber
hWndCol by referenceSalWindowHandle

Returns: SalBoolean.

Applies the referenced operation to the control represented by this handle.

Instance member QueryPopupEditColumn(nFlags, nLines)

ParameterTypeDescription
nFlags by referenceSalNumber
nLines by referenceSalNumber

Returns: SalBoolean.

Applies the referenced operation to the control represented by this handle.

Instance member QueryRowHeader(sTitle, nMaxTitle, nWidth, nFlags, hWndCol)

ParameterTypeDescription
sTitle by referenceSalString
nMaxTitleSalNumber
nWidth by referenceSalNumber
nFlags by referenceSalNumber
hWndCol by referenceSalWindowHandle

Returns: SalBoolean.

Applies the referenced operation to the control represented by this handle.

Instance member QueryScroll(nPosition, nMinRange, nMaxRange)

ParameterTypeDescription
nPosition by referenceSalNumber
nMinRange by referenceSalNumber
nMaxRange by referenceSalNumber

Returns: SalBoolean.

Applies the referenced operation to the control represented by this handle.

Instance member QuerySplitWindow(nRowsLowerHalf, bDragAdjust)

ParameterTypeDescription
nRowsLowerHalf by referenceSalNumber
bDragAdjust by referenceSalBoolean

Returns: SalBoolean.

Applies the referenced operation to the control represented by this handle.

Instance member QueryVisibleRange(nMinRange, nMaxRange)

ParameterTypeDescription
nMinRange by referenceSalNumber
nMaxRange by referenceSalNumber

Returns: SalBoolean.

Applies the referenced operation to the control represented by this handle.

Instance member ResetTable()

Returns: SalBoolean.

Applies the referenced operation to the control represented by this handle.

Instance member ScrollRow(nRow, column, nFlags)

ParameterTypeDescription
nRowSalNumber
columnControl
nFlagsSalNumber

Returns: SalBoolean.

Applies the referenced operation to the control represented by this handle.

Instance member ScrollRow(nRow, column)

ParameterTypeDescription
nRowSalNumber
columnControl

Returns: SalBoolean.

Applies the referenced operation to the control represented by this handle.

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

ParameterTypeDescription
nColorSalNumber
bDiscardableSalBoolean

Returns: SalBoolean.

Applies the referenced operation to the control represented by this handle.

Instance member SetCellTextColor(nColor)

ParameterTypeDescription
nColorSalNumber

Returns: SalBoolean.

Applies the referenced operation to the control represented by this handle.

Instance member SetChecked(value)

ParameterTypeDescription
valueSalNumber

Returns: SalBoolean.

Applies the referenced operation to the control represented by this handle.

Instance member SetColumnFlags(nFlags, bSet)

ParameterTypeDescription
nFlagsSalNumber
bSetSalBoolean

Returns: SalBoolean.

Applies the referenced operation to the control represented by this handle.

Instance member SetColumnPos(nPos)

ParameterTypeDescription
nPosSalNumber

Returns: SalBoolean.

Applies the referenced operation to the control represented by this handle.

Instance member SetColumnPosition(nPos)

ParameterTypeDescription
nPosSalNumber

Returns: SalBoolean.

Applies the referenced operation to the control represented by this handle.

Instance member SetColumnText(nColumnID, sText)

ParameterTypeDescription
nColumnIDSalNumber
sTextSalString

Returns: SalBoolean.

Applies the referenced operation to the control represented by this handle.

Instance member SetColumnTitle(sTitle)

ParameterTypeDescription
sTitleSalString

Returns: SalBoolean.

Applies the referenced operation to the control represented by this handle.

Instance member SetColumnWidth(nFormUnits)

ParameterTypeDescription
nFormUnitsSalNumber

Returns: SalBoolean.

Applies the referenced operation to the control represented by this handle.

Instance member SetContextMenu(menuName, flags)

ParameterTypeDescription
menuNameSalString
flagsSalNumber

Returns: SalBoolean.

Applies the referenced operation to the control represented by this handle.

Instance member SetContextMenu(menuType, flags)

ParameterTypeDescription
menuTypeType
flagsSalNumber

Returns: SalBoolean.

Applies the referenced operation to the control represented by this handle.

Instance member SetContextRow(nRow)

ParameterTypeDescription
nRowSalNumber

Returns: SalBoolean.

Applies the referenced operation to the control represented by this handle.

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

ParameterTypeDescription
lengthSalNumber

Returns: SalBoolean.

Applies the referenced operation to the control represented by this handle.

Instance member SetDefaultButton()

Sets this button as the containing form's accept button.

Returns: SalBoolean. True if a compatible button and containing form are available; otherwise, false.

Instance member SetFlagsAnyRows(nFlags, bSet, nFlagsOn, nFlagsOff)

ParameterTypeDescription
nFlagsSalNumber
bSetSalBoolean
nFlagsOnSalNumber
nFlagsOffSalNumber

Returns: SalBoolean.

Applies the referenced operation to the control represented by this handle.

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 SetFocusCell(nRow, column)

ParameterTypeDescription
nRowSalNumber
columnControl

Returns: SalBoolean.

Applies the referenced operation to the control represented by this handle.

Instance member SetFocusRow(nRow)

ParameterTypeDescription
nRowSalNumber

Returns: SalBoolean.

Applies the referenced operation to the control represented by this handle.

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

ParameterTypeDescription
sPictureSalString

Returns: SalBoolean.

Applies the referenced operation to the control represented by this handle.

Instance member SetFormatCode(nFormat)

ParameterTypeDescription
nFormatSalNumber

Returns: SalBoolean.

Applies the referenced operation to the control represented by this handle.

Instance member SetImageBytes(sImageBytes, nType)

Decodes image bytes and assigns the resulting image.

ParameterTypeDescription
sImageBytesSalStringThe encoded image data.
nTypeSalNumberThe SAL image-format code passed to the decoder.

Returns: SalBoolean. True if the control supports image assignment; otherwise, false.

Instance member SetImageFile(sFileName)

Loads and assigns an image from a file.

ParameterTypeDescription
sFileNameSalStringThe file path, or an empty value to clear the image.

Returns: SalBoolean. True if assignment succeeds; false if the control does not support images or a file I/O error is caught.

Instance member SetImageFit(nFit, nScaleWidth, nScaleHeight)

Deprecated memberDeprecated: SetImageFit(nFit, nScaleWidth, nScaleHeight) is deprecated, use SetImageFit(nFit) Sets how a picture is fitted within its control.

ParameterTypeDescription
nFitSalNumberThe PIC_Fit* fitting mode.
nScaleWidthSalNumberReserved for compatibility; ignored.
nScaleHeightSalNumberReserved for compatibility; ignored.

Returns: SalBoolean. True for a supported picture control; otherwise, false.

The Web implementation uses the fitting mode only.

Instance member SetImageFit(nFit)

Sets how a picture is fitted within its control.

ParameterTypeDescription
nFitSalNumberThe PIC_Fit* fitting mode.

Returns: SalBoolean. True for a supported picture control; otherwise, false.

The Web implementation uses the fitting mode only.

Instance member SetImageHandle(nType, nHandle)

Assigns an image identified by a native icon or bitmap handle.

ParameterTypeDescription
nTypeSalNumberPIC_FormatIcon for an icon; other values use the bitmap path.
nHandleSalNumberThe native handle, or zero to clear the image.

Returns: SalBoolean. True if the control supports image assignment; otherwise, false.

Instance member SetImageResource(tResource, nFormat)

Loads an image from a SAL resource and assigns it to the control.

ParameterTypeDescription
tResourceSalResourceThe image resource to load.
nFormatSalNumberThe image-format selector passed to the picture implementation.

Returns: SalBoolean. True if the image can be assigned to the control; otherwise, false.

Instance member SetImageString(nFormat, sPicture)

Decodes a SAL image buffer and assigns the resulting image.

ParameterTypeDescription
nFormatSalNumberThe SAL image-format code.
sPictureSalStringThe encoded image buffer.

Returns: SalBoolean. True if the control supports image assignment; otherwise, false.

Instance member SetInputMask(sMask)

ParameterTypeDescription
sMaskSalString

Returns: SalBoolean.

Applies the referenced operation to the control represented by this handle.

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

ParameterTypeDescription
nLinesSalNumber

Returns: SalBoolean.

Applies the referenced operation to the control represented by this handle.

Instance member SetListSelectedIndex(nIndex)

ParameterTypeDescription
nIndexSalNumber

Returns: SalBoolean.

Applies the referenced operation to the control represented by this handle.

Instance member SetListSelectedItems(nIndex, bSelect)

ParameterTypeDescription
nIndexSalNumber
bSelectSalBoolean

Returns: SalBoolean.

Applies the referenced operation to the control represented by this handle.

Instance member SetListSelectedText(nIndexStart, sText)

ParameterTypeDescription
nIndexStartSalNumber
sTextSalString

Returns: SalNumber.

Applies the referenced operation to the control represented by this handle.

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

ParameterTypeDescription
nLockedColumnsSalNumber

Returns: SalBoolean.

Applies the referenced operation to the control represented by this handle.

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(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 SetRange(nMin, nMax)

ParameterTypeDescription
nMinSalNumber
nMaxSalNumber

Returns: SalBoolean.

Applies the referenced operation to the control represented by this handle.

Instance member SetRow(nRowPos)

ParameterTypeDescription
nRowPosSalNumber

Returns: SalNumber.

Applies the referenced operation to the control represented by this handle.

Instance member SetRowFlags(nRow, nFlags, bSet)

ParameterTypeDescription
nRowSalNumber
nFlagsSalNumber
bSetSalBoolean

Returns: SalBoolean.

Applies the referenced operation to the control represented by this handle.

Instance member SetScrollBarPosition(nPos)

ParameterTypeDescription
nPosSalNumber

Returns: SalBoolean.

Applies the referenced operation to the control represented by this handle.

Instance member SetScrollBarRange(nMin, nMax, nLine, nPage)

ParameterTypeDescription
nMinSalNumber
nMaxSalNumber
nLineSalNumber
nPageSalNumber

Returns: SalBoolean.

Applies the referenced operation to the control represented by this handle.

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

Assigns text to an available status bar of the owning form.

ParameterTypeDescription
sTextSalStringThe status text to display.

Returns: SalBoolean. True after the request is processed, including when no suitable status bar is found.

Instance member SetTableFlags(nFlags, bSet)

ParameterTypeDescription
nFlagsSalNumber
bSetSalBoolean

Returns: SalBoolean.

Applies the referenced operation to the control represented by this handle.

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 SetText(sValue, bFormat)

ParameterTypeDescription
sValueSalString
bFormatSalBoolean

Returns: SalBoolean.

Applies the referenced operation to the control represented by this handle.

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

ParameterTypeDescription
bShowSalBoolean

Returns: SalBoolean.

Applies the referenced operation to the control represented by this handle.

Instance member ShowToolBar(bShow)

ParameterTypeDescription
bShowSalBoolean

Returns: SalBoolean.

Applies the referenced operation to the control represented by this handle.

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 SortRows(nColumnID, nOrder)

ParameterTypeDescription
nColumnIDSalNumber
nOrderSalNumber

Returns: SalBoolean.

Applies the referenced operation to the control represented by this handle.

Instance member ToControl()

Returns the control associated with the handle.

Returns: Control. The Wisej control resolved from the handle, or null for zero, the broadcast sentinel, or an unresolved identifier.

Instance member ToInt32()

Returns the handle as a 32-bit integer.

Returns: Int32. The handle identifier converted to a signed 32-bit integer.

On a 64-bit process, a handle outside the Int32 range can cause OverflowException.

Instance member ToIntPtr()

Returns the handle as a pointer-sized identifier.

Returns: IntPtr. The stored handle identifier.

Instance member ToNumber()

Returns the handle as a SAL number.

Returns: SalNumber. A SalNumber containing the pointer-sized identifier.

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.

Instance member Validate()

Validates the edit control's data type and applies its format on success.

Returns: SalBoolean. True when validation succeeds; false for invalid data or an unsupported control.

Shows the invalid-data message when validation fails.

Instance member Validate(nValidate)

Validates the edit control's data type and applies its format on success.

ParameterTypeDescription
nValidateSalNumberFMT_Validate_Dialog to show the invalid-data message; other values suppress it.

Returns: SalBoolean. True when validation succeeds; false for invalid data or an unsupported control.

Used By

NameDescription
Sal.AppFindRetains application-window lookup for compatibility.
Sys.hWndItemIdentifies the control currently receiving SAL message actions.
Sys.hWndFormIdentifies the form or dialog in the current SAL message context.
Sys.hWndMDIIdentifies the MDI window in the current SAL message context.
Sys.hWndFocusIdentifies the focused control recorded for the current user session.
SalNumber.ToWindowHandleWraps the pointer-sized integer representation as a SAL window handle.
SalWindowHandle.CompareToCompares handle identifiers as signed 32-bit integers.
SalWindowHandle.GetDefaultButton
SalBackgroundText.FindChildSearches this window for a child control by name.
SalCheckBox.FindChildSearches this window for a child control by name.
SalComboBox.FindChildSearches this window for a child control by name.
SalCustomControl.FindChild
SalDataField.FindChildSearches this window for a child control by name.
SalFrame.FindChildSearches this window for a child control by name.
SalGroupBox.FindChildSearches this window for a child control by name.
SalHorizontalScrollBar.FindChildSearches this window for a child control by name.
SalLine.FindChildSearches this window for a child control by name.
SalListBox.FindChildSearches this window for a child control by name.
SalMultilineField.FindChildSearches this window for a child control by name.
SalNavigationBar.FindChildSearches this window for a child control by name.
SalOptionButton.FindChildSearches this window for a child control by name.
SalPicture.FindChildSearches this window for a child control by name.
SalPushbutton.FindChildSearches this window for a child control by name.
SalRadioButton.FindChildSearches this window for a child control by name.
SalTreeControl.FindChild
SalUserControl.FindChildSearches this window for a child control by name.
SalVerticalScrollBar.FindChildSearches this window for a child control by name.
SalForm.GetDefaultButton
SalFormTableWindow.GetColumnWindow
SalWindow.FromHandleResolves a SAL window handle and casts the translated control through SAL inheritance rules.
SalWindow.GetFocusResolves the focused SAL control from the active form and nested active containers.
SalTableColumn.FindChildSearches this window for a child control by name.
SalTableWindow.GetColumnWindowFinds a column handle by display position or identifier.
WindowActionsEventArgs.hWndGets the target window handle captured when the event data was created.
SalQuickTabs.ShowWindowRemoves a control from the explicit hidden set and applies its current-tab visibility.
SalQuickTabs.ShowWindowAndLabelRemoves a control and its label from the hidden set and reapplies tab visibility.
SalQuickTabs.HideWindowHides a control and keeps it hidden across tab changes.
SalQuickTabs.IsWindowVisibleTests whether a control is present in the frame's explicitly hidden set.
SalQuickTabs.HideWindowAndLabelHides a control and its label across tab changes.
SalQuickTabs.FindTabFrameFinds the first QuickTabs frame within a form's child traversal.
SalQuickTabsDialog.FromHandleResolves a SAL window handle to an existing SalQuickTabsDialog.
SalQuickTabsForm.FromHandleResolves a SAL window handle to an existing SalQuickTabsForm.
SalQuickTabsParent.TabCreateHandles notification that a QuickTabs frame has been created.
SalQuickTabsParent.TabActivateStartHandles tab activation before associated children are shown.
SalQuickTabsParent.TabActivateFinishHandles tab activation after associated children are shown.
SalQuickTabsParent.TabUserRequestHandles a user request to change tabs.
SalQuickTabsParent.TabFrameResizeResizes bound pages using their stored bounds after a frame size change.
SalQuickTabsParent.TabSetFormPageSizeSets bound form-page bounds to the frame's display rectangle.
SalQuickTabsParent.FromHandleResolves a SAL window handle to an existing SalQuickTabsParent.
Sql.ContextSetToForm
Vis.MenuGetSystemHandle
Vis.WinGetFlags
Vis.WinGetHandle
VisCalendar.FromHandle
VisCalendar.FindChild
VisCalendarDropDown.FromHandle
VisCalendarDropDown.FindChild
VisColorComboBox.FromHandle
VisColorListBox.FromHandle
VisComboBoxBase.DragDrop
VisDesktopListBox.FromHandle
VisDirListBox.FromHandle
VisDirTreeListBox.FromHandle
VisDriveComboBox.FromHandle
VisDriveListBox.FromHandle
VisFileListBox.FromHandle
VisFontComboBox.FromHandle
VisFontListBox.FromHandle
VisFontNameComboBox.FromHandle
VisFontNameListBox.FromHandle
VisListBoxBase.DragDrop
VisListBoxExtension.FromHandle
VisListView.FromHandle
VisListView.FindChild
VisListViewDropDown.FromHandle
VisMeter.FromHandle
VisMeter.FindChild
VisOutlineComboBox.FromHandle
VisOutlineComboBox.DragDrop
VisOutlineListBox.FromHandle
VisOutlineListBox.DoDragDrop
VisOutlineListBox.FindChild
VisPictureComboBox.FromHandle
VisPictureListBox.FromHandle
VisRadioListBox.FromHandle
VisSpinField.FromHandle
VisSpinField.FindChild
VisSplitter.FromHandle
VisSplitter.FindChild
VisSplitterWindow.FromHandle
XSal.GetClientWindow
XSalFlatButton.FromHandle
XSalHSplitter.FromHandle
XSalHSplitter.GetTopFrame
XSalSplitter.FromHandle
XSalSplitter.FindChild
XSalToolbox.FromHandle
XSalVSplitter.FromHandle
XSalVSplitter.GetLeftFrame