Skip to main content
Version: 2025

SalTableWindow

Namespace: PPJ.Runtime.Windows

Assembly: PPJ.Web.50 (5.0.0.0)

Displays SAL table rows and columns in a web grid, with row contexts, split rows, validation messages, and SQL population.

public class SalTableWindow : SalTableWindowBase, ISalWindow, ISalControl, IEnumerable<SalTableRow>, IEnumerable

Example:

SalTableWindow table = new SalTableWindow();
table.AllowSorting = true;
table.CreateColumn(0, 20, 80, "Name", DataType.String);
table.InsertRow(Sys.TBL_MaxRow);

Constructors​

Instance member SalTableWindow()​

Initializes the table window, its SAL message host, and its table-filling helper.

Properties​

Instance member AllowAutoEditing​

Boolean: Gets or sets whether cells enter edit mode on entry instead of waiting for a keystroke or F2. (Default: False)

Instance member AllowRowSizing​

Boolean: Gets or sets the row-header flag that permits row resizing. (Default: False)

Static member BackgroundFillInterval​

Int32: Gets or sets the background-fill interval in milliseconds, clamping assignments to at least 500.

Static member BackgroundFillRows​

Int32: Gets or sets the number of rows fetched per background-fill operation, clamping assignments to at least 10.

Instance member CultureInfo​

CultureInfo: Gets or sets the culture used by this table. A null value inherits the containing SalForm’s culture, or Sys.CultureInfo at runtime.

Throws:

Instance member IsEmbedded​

Boolean: Gets whether this table was created as the embedded grid of a form table.

Instance member Item(id)​

SalTableColumn: Gets a column by its SAL column identifier.

Instance member Item(name)​

SalTableColumn: Gets a column by its control name.

Instance member Label​

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

Instance member LinesPerRow​

Int32: Gets or sets row height as a multiple of the theme’s row height. Assignments outside 1 through 32 are ignored. (Default: 1)

Instance member Modified​

Boolean: Gets or sets the table-level SAL modification flag.

Instance member NamedProperties​

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

Instance member ReadOnly​

Boolean: Gets or sets whether cells in the main and split grids are read-only. (Default: False)

Instance member RowSizingStyle​

RowsSizingStyle: Gets or sets which grids keep their rows at a uniform height when a row is resized. (Default: FreeSize)

Methods​

Instance member AnyRows(flagsOn, flagsOff)​

Checks both grids for a nondeleted row matching the flag filters.

ParameterTypeDescription
flagsOnSalNumberAt least one required row flag, or zero for no inclusion filter.
flagsOffSalNumberRow flags that must all be absent.

Returns: SalBoolean. True when a matching row exists; otherwise, false.

Instance member AutoSizeCols(extraSpace)​

Resizes all main-grid columns to fit their cells plus additional space.

ParameterTypeDescription
extraSpaceInt32The extra width in pixels added to each measured column.

Instance member AutoSizeCols(colStart, colEnd, extraSpace)​

Resizes main-grid columns starting at the specified index to fit their cells.

ParameterTypeDescription
colStartInt32The first zero-based column index.
colEndInt32The additional exclusive loop bound.
extraSpaceInt32The extra width in pixels added to each measured column.

The loop continues while the index is below either the column count or colEnd. It therefore processes all remaining columns even when colEnd is smaller; a value above the column count can address nonexistent columns.

Instance member BringWindowToTop()​

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

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

Instance member CenterWindow()​

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

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

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

Instance member 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 ClearSelection()​

Clears selected rows in the main and split grids.

Returns: SalBoolean. Always true after processing.

Instance member ColumnAverage(columnId, flagsOn, flagsOff)​

Calculates the numeric average for matching rows of a column, preserving row context.

ParameterTypeDescription
columnIdSalNumberThe SAL column identifier.
flagsOnSalNumberAt least one required row flag, or zero for no inclusion filter.
flagsOffSalNumberRow flags that must all be absent.

Returns: SalNumber. The average, or zero for an unresolved column or no matching rows.

Instance member ColumnSum(columnId, flagsOn, flagsOff)​

Sums numeric values for matching rows of a column, preserving row context.

ParameterTypeDescription
columnIdSalNumberThe SAL column identifier.
flagsOnSalNumberAt least one required row flag, or zero for no inclusion filter.
flagsOffSalNumberRow flags that must all be absent.

Returns: SalNumber. The sum, or zero for an unresolved column, a date/time column, or no matching rows.

Instance member CopyRows(flagsOn, flagsOff)​

Copies matching rows to the clipboard as tab-separated fields and CRLF-separated records.

ParameterTypeDescription
flagsOnSalNumberAt least one required row flag, or zero for no inclusion filter.
flagsOffSalNumberRow flags that must all be absent.

Returns: SalBoolean. True when a nonempty text block is submitted to the clipboard helper; false when there is no text to copy.

Instance member CreateColumn(colPos, dispWidth, maxChars, title)​

Creates a dynamic string column.

ParameterTypeDescription
colPosSalNumberThe requested display position.
dispWidthSalNumberThe width in horizontal form units.
maxCharsSalNumberThe maximum text length.
titleSalStringThe column caption.

Returns: SalNumber. The new SAL column identifier.

Instance member CreateColumn(colPos, dispWidth, maxChars, title, dataType)​

Creates and attaches a dynamic SAL column.

ParameterTypeDescription
colPosSalNumberThe column’s display position.
dispWidthSalNumberThe width in horizontal form units.
maxCharsSalNumberThe maximum input length.
titleSalStringThe column caption.
dataTypeDataTypeThe SAL data type of the column values.

Returns: SalNumber. The new column’s identifier.

Instance member CreateColumnEx(colPos, dispWidth, title, maxChars, dataType)​

Creates a dynamic column using a numeric SAL data-type code.

ParameterTypeDescription
colPosSalNumberThe requested display position.
dispWidthSalNumberThe width in horizontal form units.
titleSalStringThe column caption.
maxCharsSalNumberThe maximum text length.
dataTypeSalNumberThe SAL data-type code converted to DataType.

Returns: SalNumber. The new SAL column identifier.

Instance member CreateColumnFromClass(className, position)​

Instantiates a resolved SalTableColumn subclass and adds it as a dynamic column.

ParameterTypeDescription
classNameSalStringThe class name resolved against the web application’s main assembly.
positionSalNumberThe display position, or a negative value to retain the default position.

Returns: SalTableColumn. The new column, or null when the class cannot be resolved or is not a SalTableColumn subclass.

Instance member DefineRowHeader(title, width, flags, column)​

Sets the row-header caption, width, flags, and optional mirror column.

ParameterTypeDescription
titleSalStringThe upper-left header caption.
widthSalNumberThe row-header width in pixels; a nonpositive value hides main-grid row headers before applying flags.
flagsSalNumberThe TBL_RowHdr_* flags to apply.
columnControlThe column whose values supply row-header text, or null. A foreign column is matched by identifier.

Returns: SalBoolean. True when the settings have been applied.

Instance member DefineSplitWindow(rows, resizable)​

Creates or removes the split grid when its configured row count changes.

ParameterTypeDescription
rowsSalNumberThe split-grid row count; a nonpositive value removes the split grid.
resizableSalBooleanTrue to allow splitter resizing when the split grid is configured.

Returns: SalBoolean. True.

If rows already equals SplitGridRows, no settings are changed, including resizable.

Instance member DeleteRow(rowNum, flag)​

Removes a row or marks it deleted while suppressing user-click behavior.

ParameterTypeDescription
rowNumSalNumberThe SAL row context.
flagSalNumberTBL_NoAdjust to remove the row physically; another value to mark it deleted.

Returns: SalBoolean. The row’s Deleted state after the operation, or false if the row was absent or already deleted.

Instance member DeleteSelected(hSql)​

Executes the prepared SQL command for selected existing rows and marks selected rows deleted.

ParameterTypeDescription
hSqlSalSqlHandleThe prepared delete-command handle; new rows skip SQL execution.

Returns: SalBoolean. False when SQL execution fails; otherwise, true.

Instance member DeleteSelected(hSql, errorHandler)​

Deletes selected rows within a temporary SQL error-handler context.

ParameterTypeDescription
hSqlSalSqlHandleThe prepared delete-command handle; new rows skip SQL execution.
errorHandlerWhenSqlErrorHandlerThe callback active during SQL operations.

Returns: SalBoolean. False when SQL execution fails; otherwise, true.

Instance member DestroyColumns()​

Stops population and removes all rows and columns if every column is dynamic.

Returns: SalBoolean. True if the columns were removed or there were none; false if any column is not dynamic.

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.

Protected member Dispose(disposing)​

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

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

Instance member DoDeletes(hSql, flagsOn)​

Executes a prepared delete statement for matching existing rows and marks each processed row deleted.

ParameterTypeDescription
hSqlSalSqlHandleThe SQL handle containing the prepared statement and row-context bindings.
flagsOnSalNumberThe flags required on rows to process.

Returns: SalBoolean. True if every required execution succeeds; false at the first execution failure.

New rows are marked deleted without executing SQL. The previous row context is restored; earlier successful operations are not rolled back.

Instance member DoDeletes(hSql, flagsOn, errorHandler)​

Processes matching row deletions within a temporary SQL error-handler context.

ParameterTypeDescription
hSqlSalSqlHandleThe prepared delete-command handle.
flagsOnInt32At least one required row flag, or zero for no inclusion filter.
errorHandlerWhenSqlErrorHandlerThe callback active during SQL operations.

Returns: SalBoolean. False at the first failed execution; otherwise, true.

Instance member DoInserts(hSql, clearFlags)​

Executes the prepared SQL statement in the context of each matching new rows.

ParameterTypeDescription
hSqlSalSqlHandleThe SQL handle containing the prepared statement and row-context bindings.
clearFlagsSalBooleanTrue to clear ROW_New and ROW_Edited after each successful execution.

Returns: SalBoolean. True if every execution succeeds; false at the first failure.

The previous row context is restored; earlier successful operations are not rolled back.

Instance member DoInserts(hSql, clearFlags, errorHandler)​

Processes new-row inserts within a temporary SQL error-handler context.

ParameterTypeDescription
hSqlSalSqlHandleThe prepared insert-command handle.
clearFlagsSalBooleanTrue to clear new and edited flags after each successful execution.
errorHandlerWhenSqlErrorHandlerThe callback active during SQL operations.

Returns: SalBoolean. False at the first failed execution; otherwise, true.

Instance member DoUpdates(hSql, clearFlags)​

Executes the prepared SQL statement in the context of each matching edited rows that are not new.

ParameterTypeDescription
hSqlSalSqlHandleThe SQL handle containing the prepared statement and row-context bindings.
clearFlagsSalBooleanTrue to clear ROW_Edited after each successful execution.

Returns: SalBoolean. True if every execution succeeds; false at the first failure.

The previous row context is restored; earlier successful operations are not rolled back.

Instance member DoUpdates(hSql, clearFlags, errorHandler)​

Processes edited-row updates within a temporary SQL error-handler context.

ParameterTypeDescription
hSqlSalSqlHandleThe prepared update-command handle.
clearFlagsSalBooleanTrue to clear the edited flag after each successful execution.
errorHandlerWhenSqlErrorHandlerThe callback active during SQL operations.

Returns: SalBoolean. False at the first failed execution; otherwise, true.

Instance member EnableWindow()​

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

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

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

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

Instance member EnableWindowAndLabel()​

Enables input to this control and enables its associated label.

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

Instance member FetchRow(rowNum)​

Fetches a table row and makes it the current SAL row context on success.

ParameterTypeDescription
rowNumSalNumberThe SAL row context to fetch.

Returns: SalNumber. The TBL_RowFetched, TBL_NoMoreRows, or TBL_Error result from the row fetch.

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 FindNextRow(rowNum, flagsOn, flagsOff)​

Searches after the supplied row context for a row matching the flag masks.

ParameterTypeDescription
rowNum by referenceSalNumberThe starting SAL row context; receives the matching context on success.
flagsOnSalNumberThe flags required on the matching row.
flagsOffSalNumberThe flags that must be clear on the matching row.

Returns: SalBoolean. True if a matching row is found; otherwise, false.

Example:

Collect selected, visible row contexts without changing the current row context.

using PPJ.Runtime;
using PPJ.Runtime.Windows;
using Wisej.Web;

public static class SelectionExample
{
public static System.Collections.Generic.List<SalNumber> SelectedRows(
SalTableWindow table)
{
var rows = new System.Collections.Generic.List<SalNumber>();
SalNumber row = Sys.TBL_MinRow;
while (table.FindNextRow(ref row, Sys.ROW_Selected, Sys.ROW_Hidden))
rows.Add(row);
return rows;
}
}

Instance member FindPrevRow(rowNum, flagsOn, flagsOff)​

Searches before the supplied row context for a row matching the flag masks.

ParameterTypeDescription
rowNum by referenceSalNumberThe starting SAL row context; receives the matching context on success.
flagsOnSalNumberThe flags required on the matching row.
flagsOffSalNumberThe flags that must be clear on the matching row.

Returns: SalBoolean. True if a matching row is found; otherwise, false.

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.

Static member FromControl(ctrl)​

Gets a table control directly or from a SalFormTableWindow wrapper.

ParameterTypeDescription
ctrlControlThe control or form to inspect.

Returns: SalTableWindow. The table, or null for any other control type.

Instance member GetClassName()​

Gets the translated application class name associated with this control.

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

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

Instance member GetColumnFromId(colId)​

Resolves a SAL column identifier to its column control.

ParameterTypeDescription
colIdInt32The SAL column identifier.

Returns: SalTableColumn. The column, or null when unresolved.

Instance member GetColumnFromPos(colPos)​

Finds a SAL column by its display position.

ParameterTypeDescription
colPosInt32The column’s display position.

Returns: SalTableColumn. The matching column, or null when no column occupies that position.

Instance member GetColumnText(colId, text)​

Copies a column value from the current row context.

ParameterTypeDescription
colIdSalNumberThe SAL column identifier.
text by referenceSalStringReceives formatted cell text, binary-string data for a binary column, or an empty string for an unresolved column.

Returns: SalBoolean. Always true.

Instance member GetColumnText(colId)​

Gets a column value from the current row context.

ParameterTypeDescription
colIdSalNumberThe SAL column identifier.

Returns: SalString. Formatted cell text, binary-string data for a binary column, or an empty string for an unresolved column.

Instance member GetColumnWindow(nCol, nFlags)​

Finds a column handle by display position or identifier.

ParameterTypeDescription
nColSalNumberThe column position or identifier.
nFlagsSalNumberCOL_GetPos to interpret nCol as a display position; otherwise, it is an identifier.

Returns: SalWindowHandle. The matching column handle, or a null handle.

Instance member GetContextRow()​

Gets the SAL row context used for column-value access.

Returns: SalNumber. The current context-row value.

Instance member GetControlType()​

Gets the SAL window type of this control.

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

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

Copies the configured text-line count per row.

ParameterTypeDescription
lines by referenceSalNumberReceives LinesPerRow.

Returns: SalBoolean. Always true.

Instance member GetLinesPerRow()​

Gets the configured text-line count per row.

Returns: SalNumber. The LinesPerRow setting.

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

Counts consecutive frozen columns from the start of the main grid’s display order.

Returns: SalNumber. The number of leading frozen columns.

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 GetNextColumn(prev, forward)​

Traverses columns in collection order.

ParameterTypeDescription
prevSalTableColumnThe reference column, or null to return the first column regardless of direction.
forwardBooleanTrue for the following column; false for the preceding column.

Returns: SalTableColumn. The neighboring column, or null at a boundary or for an unknown reference column.

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(rowNum, flags)​

Tests whether a nondeleted row has any requested flag.

ParameterTypeDescription
rowNumSalNumberThe SAL row context.
flagsSalNumberThe flag mask; zero never matches.

Returns: SalBoolean. True when at least one bit matches; false for an absent or deleted row.

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 GetTableFlags(flags)​

Checks whether every requested table flag is enabled.

ParameterTypeDescription
flagsSalNumberThe table flag mask.

Returns: SalBoolean. True when all bits are set, including a zero mask.

Instance member GetText(sText, nMaxLen)​

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

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

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

Instance member GetText(nMaxLen)​

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

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

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

Instance member GetWindowColor(nColorIndex)​

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

ParameterTypeDescription
nColorIndexSalNumberThe Sys.COLOR_Index* color component to read.

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

Instance member GetWindowState()​

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

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

Instance member HideWindow()​

Hides this control or table column.

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

Instance member HideWindowAndLabel()​

Hides this control and its associated label.

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

Instance member HitTest(x, y, row, col, location)​

Identifies table rows, columns, headers, and split regions at a client point.

ParameterTypeDescription
xSalNumberThe horizontal client coordinate in pixels.
ySalNumberThe vertical client coordinate in pixels.
row by referenceSalNumberReceives the SAL row context, or TBL_Error when no row is hit.
col by referenceSalWindowHandleReceives the SAL column handle, or a null handle when no column is hit.
location by referenceSalNumberReceives the combined TBL_XOver* and TBL_YOver* region flags.

Returns: SalBoolean. True after the hit-test outputs are assigned, even when no cell is hit.

Instance member InsertRow(rowNum)​

Inserts a fetched row marked ROW_New and makes it the SAL row context.

ParameterTypeDescription
rowNumSalNumberThe context before which to insert; an index outside the target grid’s range appends a row. Use TBL_MaxRow to append to the main grid.

Returns: SalNumber. The new row’s SAL context, or TBL_Error when an ArgumentException prevents insertion.

The grid’s focused row index is preserved. Editing is ended when possible, and edit and selection messages are suppressed during insertion.

Instance member InvalidateWindow()​

Invalidates this control and its child controls for repainting.

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

Instance member IsDerivedFromClass(tClass)​

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

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

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

Instance member IsEnabled()​

Determines whether this control accepts input.

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

Instance member 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()​

Ends editing in the current grid and selects its current row.

Returns: SalBoolean. True if editing ended successfully or no edit was active; otherwise, false.

Instance member KillFocusRow()​

Clears the current cell in both main and split grids.

Returns: SalBoolean. True.

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 NotifyRender(config)​

Clears the pending header-height adjustment marker after rendering.

ParameterTypeDescription
configObjectThe render configuration; this override does not inspect it.

Protected member OnBeginEdit(grid, e)​

Receives the cell-begin-edit notification without additional processing.

ParameterTypeDescription
gridDataGridViewThe main or split grid raising the event.
eDataGridViewCellCancelEventArgsThe event data.

Protected member OnCellClick(grid, e)​

Dispatches a click message for a noneditable cell when it was not already handled by the current-cell transition.

ParameterTypeDescription
gridDataGridViewThe main or split grid raising the event.
eDataGridViewCellEventArgsThe event data.

Protected member OnCellDoubleClick(grid, e)​

Sets the clicked row’s context and sends SAM_DoubleClick to its SAL column.

ParameterTypeDescription
gridDataGridViewThe main or split grid raising the event.
eDataGridViewCellEventArgsThe event data.

Protected member OnCellFormatting(grid, e)​

Replaces nonempty password-cell text with the column’s masked display text.

ParameterTypeDescription
gridDataGridViewThe main or split grid raising the event.
eDataGridViewCellFormattingEventArgsThe event data.

Protected member OnCellValidating(grid, e)​

Validates dirty or modified cell contents in their row context, restoring the previous context afterward.

ParameterTypeDescription
gridDataGridViewThe main or split grid raising the event.
eDataGridViewCellValidatingEventArgsThe event data.

Protected member OnColumnHeaderMouseClick(grid, e)​

Sends SAM_ColumnSelectClick to the column identified by the clicked header.

ParameterTypeDescription
gridDataGridViewThe main or split grid raising the event.
eDataGridViewCellMouseEventArgsThe event data.

Protected member OnColumnHeaderMouseDoubleClick(grid, e)​

Sends SAM_CaptionDoubleClick to the column identified by the double-clicked header.

ParameterTypeDescription
gridDataGridViewThe main or split grid raising the event.
eDataGridViewCellMouseEventArgsThe event data.

Protected member OnCornerClick(grid, e)​

Sends SAM_CornerClick for the upper-left header cell.

ParameterTypeDescription
gridDataGridViewThe main or split grid raising the event.
eDataGridViewCellEventArgsThe event data.

Protected member OnCornerDoubleClick(grid, e)​

Sends SAM_CornerDoubleClick for the upper-left header cell.

ParameterTypeDescription
gridDataGridViewThe main or split grid raising the event.
eDataGridViewCellEventArgsThe event data.

Protected member OnCreateControl()​

Creates the table infrastructure, records its initial font, and updates column headers.

Protected member OnCurrentCellChanged(grid, e)​

Updates the row context and dispatches column focus and client-originated click messages for the new current cell.

ParameterTypeDescription
gridDataGridViewThe main or split grid raising the event.
eEventArgsThe event data.

Protected member OnDefaultRowHeightChanged(grid, e)​

Receives the default-row-height notification without additional processing.

ParameterTypeDescription
gridDataGridViewThe main or split grid raising the event.
eEventArgsThe event data.

Protected member OnDoubleClick(grid, e)​

Sends SAM_DoubleClick when the mouse is over the grid’s empty area.

ParameterTypeDescription
gridDataGridViewThe main or split grid raising the event.
eEventArgsThe event data.

Protected member OnDragDrop(e)​

Processes the SAL drop notification before raising the inherited event.

ParameterTypeDescription
eDragEventArgsThe event data passed to both handlers.

Protected member OnDragEnd(e)​

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

ParameterTypeDescription
eEventArgsThe event data passed to both handlers.

Protected member OnDragEnter(e)​

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

ParameterTypeDescription
eDragEventArgsThe event data passed to both handlers.

Protected member OnDragLeave(e)​

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

ParameterTypeDescription
eEventArgsThe event data passed to both handlers.

Protected member OnDragOver(e)​

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

ParameterTypeDescription
eDragEventArgsThe event data passed to both handlers.

Protected member OnDragStart(e)​

Starts SAL drag handling before raising the inherited drag-start event.

ParameterTypeDescription
eEventArgsThe event data passed to both handlers.

Protected member OnEditingControlShowing(grid, e)​

Configures the column editor, combo-box drop-down messages, popup height, password masking, and spell checking.

ParameterTypeDescription
gridDataGridViewThe main or split grid raising the event.
eDataGridViewEditingControlShowingEventArgsThe event data.

Protected member OnEndEdit(grid, e)​

Notifies the SAL column that its cell editor has closed.

ParameterTypeDescription
gridDataGridViewThe main or split grid raising the event.
eDataGridViewCellEventArgsThe event data.

Protected member OnFontChanged(e)​

Propagates the new font and updates column widths and header layout.

ParameterTypeDescription
eEventArgsThe font-change event data.

Protected member OnGotFocus(grid, e)​

Records this table as the focused SAL window and sends the grid’s focus-gain message.

ParameterTypeDescription
gridDataGridViewThe main or split grid raising the event.
eEventArgsThe event data.

Protected member OnLastCellTab(grid, e)​

Sends SAM_EndCellTab and restores the row context if a handler changes it.

ParameterTypeDescription
gridDataGridViewThe main or split grid raising the event.
eDataGridViewCellEventArgsThe event data.

Protected member OnLostFocus(grid, e)​

Sends the grid’s SAL focus-loss message unless the top-level form is closing.

ParameterTypeDescription
gridDataGridViewThe main or split grid raising the event.
eEventArgsThe event data.

Protected member OnMouseDown(e)​

Synchronizes the SAL row context with the current grid cell before raising the mouse event.

ParameterTypeDescription
eMouseEventArgsThe mouse event data.

Protected member OnRowEnter(grid, e)​

Sets the entered row’s context and sends SAM_RowSetContext.

ParameterTypeDescription
gridDataGridViewThe main or split grid raising the event.
eDataGridViewCellEventArgsThe event data.

Protected member OnRowHeaderMouseClick(grid, e)​

Sets the row context and sends SAM_RowHeaderClick.

ParameterTypeDescription
gridDataGridViewThe main or split grid raising the event.
eDataGridViewCellMouseEventArgsThe event data.

Protected member OnRowHeaderMouseDoubleClick(grid, e)​

Sets the row context and sends SAM_RowHeaderDoubleClick.

ParameterTypeDescription
gridDataGridViewThe main or split grid raising the event.
eDataGridViewCellMouseEventArgsThe event data.

Protected member OnRowValidating(grid, args)​

Sends SAM_RowValidate in the row being left and restores the previous context afterward.

ParameterTypeDescription
gridDataGridViewThe grid containing the row.
argsDataGridViewCellCancelEventArgsThe validation event data; Cancel is set for VALIDATE_Cancel or if the handler removes the row.

Protected member OnValidating(e)​

Validates the current cell when focus leaves the table, unless the table or an ancestor is disposing.

ParameterTypeDescription
eCancelEventArgsThe event data; Cancel is set when the current cell cannot be left.

Protected member OnWebEvent(e)​

Processes split-grid resize events in a SAL context and dispatches WinSDK-compatible event notifications.

ParameterTypeDescription
eWisejEventArgsThe browser event to process.

Protected member OnWebRender(config)​

Serializes internal-grid identifiers, cache settings, and split-grid options for the table’s browser component.

ParameterTypeDescription
configObjectThe mutable browser configuration and wired-event collection.

Instance member PasteRows()​

Appends rows from tab-separated Unicode clipboard text, assigning fields to visible columns.

Returns: SalBoolean. True when Unicode text is available and processed; false when no usable text is available.

Carriage returns and line feeds delimit rows; empty lines are skipped. Failed row insertions are skipped, so true does not guarantee every input row was inserted.

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, select, method)​

Executes a query and populates the table, replacing existing rows and previous automatic columns.

ParameterTypeDescription
hSqlSalSqlHandleThe SQL handle used to prepare, execute, and fetch the query.
selectSalStringThe SQL statement, or empty text to execute the handle’s previously prepared statement.
methodSalNumberTBL_FillNormal, TBL_FillAllBackground, or TBL_FillAll.

Returns: SalBoolean. False if preparation or execution fails; otherwise, true after population is started or completed.

When no columns or INTO bindings exist, columns are created from the result schema. Selection messages are suppressed during setup; background population continues after this call returns.

Example:

Populate an initialized table using an already connected SQL handle. This example fetches all rows before returning.

using PPJ.Runtime;
using PPJ.Runtime.Windows;
using Wisej.Web;

public static class PopulationExample
{
public static bool LoadCustomers(SalTableWindow table, PPJ.Runtime.Sql.SalSqlHandle sql)
{
// CustomerId and CustomerName are columns in the application's database.
// With no existing columns or INTO bindings, result columns are generated.
return table.Populate(sql,
"SELECT CustomerId, CustomerName FROM Customers ORDER BY CustomerName",
Sys.TBL_FillAll);
}
}

Instance member Populate(hSql, select, method, errorHandler)​

Executes a query and populates the table, replacing existing rows and previous automatic columns.

ParameterTypeDescription
hSqlSalSqlHandleThe SQL handle used to prepare, execute, and fetch the query.
selectSalStringThe SQL statement, or empty text to execute the handle’s previously prepared statement.
methodSalNumberTBL_FillNormal, TBL_FillAllBackground, or TBL_FillAll.
errorHandlerWhenSqlErrorHandlerThe SQL error handler installed for this call.

Returns: SalBoolean. False if preparation or execution fails; otherwise, true after population is started or completed.

When no columns or INTO bindings exist, columns are created from the result schema. Selection messages are suppressed during setup; background population continues after this call returns.

Example:

Populate an initialized table using an already connected SQL handle. This example fetches all rows before returning.

using PPJ.Runtime;
using PPJ.Runtime.Windows;
using Wisej.Web;

public static class PopulationExample
{
public static bool LoadCustomers(SalTableWindow table, PPJ.Runtime.Sql.SalSqlHandle sql,
PPJ.Runtime.Sql.WhenSqlErrorHandler onSqlError)
{
// CustomerId and CustomerName are columns in the application's database.
// With no existing columns or INTO bindings, result columns are generated.
return table.Populate(sql,
"SELECT CustomerId, CustomerName FROM Customers ORDER BY CustomerName",
Sys.TBL_FillAll, onSqlError);
}
}

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 QueryFocusCell(rowNum, column)​

Retrieves the current row and enabled column from the focused split grid, or the main grid otherwise.

ParameterTypeDescription
rowNum by referenceSalNumberReceives the current SAL row context, or TBL_Error when no current row exists.
column by referenceSalWindowHandleReceives the current SAL column handle, or a null handle when no column is current or the column is disabled.

Returns: SalBoolean. True.

Instance member QueryRowHeader(title, maxTitle, width, flags, column)​

Retrieves the main-grid row-header caption, width, flags, and mirror column.

ParameterTypeDescription
title by referenceSalStringReceives the header caption truncated to maxTitle characters, or empty text when no header column exists.
maxTitleSalNumberThe maximum number of caption characters to return.
width by referenceSalNumberReceives the header width in pixels, or zero when no header column exists.
flags by referenceSalNumberReceives the TBL_RowHdr_* flags.
column by referenceSalWindowHandleReceives the mirror column handle.

Returns: SalBoolean. True.

Instance member QueryScroll(position, minRange, maxRange)​

Retrieves the main grid’s first displayed row and current row-index range.

ParameterTypeDescription
position by referenceSalNumberReceives the first displayed row index.
minRange by referenceSalNumberReceives the first nondeleted row context found from MinRow, or MinRow when none is found.
maxRange by referenceSalNumberReceives the main-grid row count minus one.

Returns: SalBoolean. True.

Instance member QuerySplitWindow(rows, resizable)​

Retrieves the split-grid row count and splitter enabled state.

ParameterTypeDescription
rows by referenceSalNumberReceives the configured row count, or zero when no split grid exists.
resizable by referenceSalBooleanReceives Splitter.Enabled, or false when no split grid exists.

Returns: SalBoolean. True.

The returned resizable value reflects the splitter’s Enabled property, rather than its IsSplitterFixed setting.

Instance member QueryVisibleRange(minRange, maxRange)​

Retrieves the first and last main-grid rows whose Visible state is set.

ParameterTypeDescription
minRange by referenceSalNumberReceives the first visible row context, or TBL_Error when none exists.
maxRange by referenceSalNumberReceives the last visible row context, or TBL_Error when none exists.

Returns: SalBoolean. True.

Visibility here is the row’s Visible state, not whether the row is currently within the scrolled viewport.

Instance member ResetTable()​

Stops population, ends the current edit, and clears the table’s row data.

Returns: SalBoolean. True if the table was reset; false if the current edit could not end.

Instance member ScrollRow(rowNum, column)​

Fetches a requested row as needed and scrolls its cell into view.

ParameterTypeDescription
rowNumSalNumberThe requested SAL row context.
columnControlThe target column, or null for the first grid column.

Returns: SalBoolean. Always true after scrolling; a row that cannot be fetched falls back to the main grid header position.

Instance member ScrollRow(rowNum, column, flags)​

Scrolls a row and column into view, optionally aligning them to the top or bottom.

ParameterTypeDescription
rowNumSalNumberThe SAL row context; -1 requests column-only scrolling.
columnControlThe SAL column, or null to use the first column. A foreign column is matched by identifier.
flagsSalNumberTBL_ScrollTop, TBL_ScrollBottom, or another value for normal scrolling.

Returns: SalBoolean. True if the resolved cell can be scrolled into view; false for an invalid cell or a missing column in column-only mode.

If the requested row cannot be fetched, the implementation falls back to main-grid row zero.

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 SetColumnText(columnId, text)​

Assigns text to a column in the current row context.

ParameterTypeDescription
columnIdSalNumberThe SAL column identifier.
textSalStringThe text to assign.

Returns: SalBoolean. True when the column resolves and assignment completes; otherwise, false.

Instance member SetContextMenu(sMenuName, nFlags)​

Creates and assigns a context menu for this control.

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

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

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

Instance member SetContextMenu(menuType, nFlags)​

Creates and assigns a context menu for this control.

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

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

Instance member SetContextRow(rowNum)​

Changes the row context used by column-value access.

ParameterTypeDescription
rowNumSalNumberThe SAL context row, including the temporary-row code where supported.

Returns: SalBoolean. True when context changes successfully; false for an untranslatable, invalid, or deleted row.

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 SetFlagsAnyRows(flags, on, flagsOn, flagsOff)​

Changes row flags on matching rows in both main and split grids.

ParameterTypeDescription
flagsSalNumberThe ROW_* flags to change.
onSalBooleanTrue to set the flags; false to clear them.
flagsOnSalNumberThe flags required on rows to change.
flagsOffSalNumberThe flags that must be clear on rows to change.

Returns: SalBoolean. True if at least one grid processed matching rows; false if no rows matched or required edit completion failed in every matching grid.

Instance member SetFocus()​

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

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

Instance member SetFocusCell(rowNum, column)​

Fetches a row and focuses its specified column, ending a different active cell edit first.

ParameterTypeDescription
rowNumSalNumberThe SAL row context.
columnControlThe SAL column to focus, or a control that does not resolve to a column to focus the row header. A foreign column is matched by identifier.

Returns: SalBoolean. True when focus is set or already correct; false when the column, row, edit completion, or cell change prevents the operation.

For a hidden cell, only the SAL row context is updated and the current cell is cleared. Programmatic changes suppress SAM_Click.

Instance member SetFocusRow(rowNum)​

Focuses a visible, nondeleted row’s header after ending editing and fetching the row.

ParameterTypeDescription
rowNumSalNumberThe SAL row context to focus.

Returns: SalBoolean. True if the row receives focus; false if the row is invalid, hidden, deleted, unavailable, or cannot be focused.

The operation preserves selection and suppresses SAM_Click generated by programmatic cell changes.

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

Assigns the text-line count used for row sizing.

ParameterTypeDescription
nLinesSalNumberA line count from 1 through 32; other values are ignored.

Returns: SalBoolean. Always true, including ignored assignments.

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

Freezes the leading columns in display order in both grids and prevents moving those columns.

ParameterTypeDescription
lockedSalNumberThe number of leading columns to freeze, clamped to zero through the grid’s column count.

Returns: SalBoolean. True.

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(min, max)​

Stops current population and establishes the main-grid row range.

ParameterTypeDescription
minSalNumberThe minimum row context; a negative value leaves the range unchanged after ending editing.
maxSalNumberThe inclusive maximum row context; less than min clears the main grid, and TBL_MaxRow requests an unbounded fill.

Returns: SalBoolean. False if editing cannot end; otherwise, true.

Instance member SetRow(rowPos)​

Moves the row context and focus to the first, last, next, or previous visible fetched row.

ParameterTypeDescription
rowPosSalNumberTBL_SetFirstRow, TBL_SetLastRow, TBL_SetNextRow, or TBL_SetPrevRow.

Returns: SalNumber. The selected row context, or TBL_Error if navigation fails.

Next and previous navigation start from FocusRow. Last-row navigation fetches all remaining rows before searching backward.

Instance member SetRowFlags(rowNum, flags, on)​

Changes the specified flags on an existing, nondeleted row.

ParameterTypeDescription
rowNumSalNumberThe SAL row context.
flagsSalNumberThe ROW_* flags to change.
onSalBooleanTrue to set the flags; false to clear them.

Returns: SalBoolean. True if the flags were applied; false for an absent or deleted row, or if editing cannot end before changing ROW_Selected.

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 SetTableFlags(flags, on)​

Ends the current grid edit and changes the specified table flags.

ParameterTypeDescription
flagsSalNumberThe TBL_Flag_* mask to change.
onSalBooleanTrue to set the flags; false to clear them.

Returns: SalBoolean. True; the return value from ending the edit is ignored.

Instance member SetText(sText)​

Assigns the control's text.

ParameterTypeDescription
sTextSalStringThe text to display.

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

Instance member SetTimer(nIDEvent, nElapseMilliSec)​

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

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

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

Instance member SetWindowColor(nColorIndex, nColor)​

Assigns a window or table-cell color.

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

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

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

Instance member 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(colId, order)​

Sorts the main-grid rows using a column that has COL_EnableSort set.

ParameterTypeDescription
colIdSalNumberThe SAL column identifier.
orderSalNumberTBL_SortDecreasing for descending order; otherwise, ascending order.

Returns: SalBoolean. False if the column is absent or sorting is disabled on it; otherwise, true.

Selection messages are suppressed, and the main-grid row context is synchronized after sorting.

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

Enables header wrapping when a caption contains a newline and schedules header-height adjustment.

Instance member UpdateColumnWidths()​

Reapplies column widths after creation or designer loading and records the current base font.

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 this control dispatches a SAL or custom 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.