Skip to main content
Version: 2025

SalTableWindow

Namespace: PPJ.Runtime.Windows

Assembly: PPJ.Web.49 (4.9.0.0)

Table Window Control

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

Constructors

Instance memberSalTableWindow()

Constructs a SalTableWindow control.

Properties

Instance memberAllowAutoEditing

Boolean: Enables/Disables AutoEditing mode. When this mode is on, the grid automatically enters edit mode when a cell is selected. (Default: False)

Instance memberAllowRowSizing

Boolean: Allow row sizing. (Default: False)

Static memberBackgroundFillInterval

Int32: Fill interval for the background filler, in milliseconds.

Static memberBackgroundFillRows

Int32: Number of rows to load on each interval

Instance memberCultureInfo

CultureInfo: Returns/Sets the culture to use for this control.

Instance memberIsEmbedded

Boolean: Returns true if the SalTableWindow control is embedded and the columns are owned/parented by the container.

Instance memberItem(id)

SalTableColumn: Returns the table column object with the specified column ID. The ID is 1-based.

Instance memberItem(name)

SalTableColumn: Returns the table column object with the specified name.

Instance memberLabel

Control: Returns/Sets the label associated with this control.

Instance memberLinesPerRow

Int32: Number of lines per row. (Default: 1)

Instance memberModified

Boolean:

Instance memberNamedProperties

SalNamedProperties: Returns the collection of named properties.

Instance memberReadOnly

Boolean: Returns/Sets the ReadOnly flag. When the ReadOnly flag is true the entire TableWindow control cannot be edited. However, the Mouse, scrolling and the Keyboard are still active. (Default: False)

Instance memberRowSizingStyle

RowsSizingStyle: Keeps all rows of the same height. (Default: FreeSize)

Methods

Instance memberAnyRows(flagsOn, flagsOff)

Determines whether any rows in the specified table window match certain flags. If you set flagsOn to zero (0) and flagsOff to zero (0), SalTblAnyRows returns TRUE if the table window contains any rows at all, regardless of their flags.

ParameterTypeDescription
flagsOnSalNumberThe flags that the row should have. You can combine ROW * flags using the OR (|) operator.
flagsOffSalNumberThe flags that the row should not have. You can combine ROW * flags using the OR (|) operator.

Returns: SalBoolean. true if any

Instance memberAutoSizeCols(extraSpace)

Resize all columns to fit the content.

ParameterTypeDescription
extraSpaceInt32Additional space in pixels.

Instance memberAutoSizeCols(colStart, colEnd, extraSpace)

Resizes the specified columns to fit the content.

ParameterTypeDescription
colStartInt32First column index.
colEndInt32Last column index.
extraSpaceInt32Additional space in pixels.

Instance memberBringWindowToTop()

Brings a window to the top of all overlapping windows.

Returns: SalBoolean.

Instance memberCenterWindow()

Centers a window. If the window is a top-level window, it centers it on the desktop. If the window is a child window, it centers it on top of its parent.

Returns: SalBoolean.

Instance memberClearCursor(nType)

Clears a window's cursor.

ParameterTypeDescription
nTypeSalNumber

Returns: SalBoolean.

Instance memberClearSelection()

Deselects all rows of a table window.

Returns: SalBoolean.

Instance memberColumnAverage(columnId, flagsOn, flagsOff)

Computes the average of all column values or only specified column values in a table window.

ParameterTypeDescription
columnIdSalNumber
flagsOnSalNumber
flagsOffSalNumber

Returns: SalNumber.

Instance memberColumnSum(columnId, flagsOn, flagsOff)

Computes the sum of all column values or only specified column values in a table window.

ParameterTypeDescription
columnIdSalNumber
flagsOnSalNumber
flagsOffSalNumber

Returns: SalNumber.

Instance memberCopyRows(flagsOn, flagsOff)

Copies the contents of the specified table window rows to the Clipboard in text format. In the Clipboard, columns are delimited by TAB characters and rows are delimited by end-of-line characters. Set flagsOn to zero (0) and flagsOff to zero (0) to copy the entire table.

ParameterTypeDescription
flagsOnSalNumberThe flags that the row should have. You can combine ROW* flags using the OR (|) operator. NflagsOff Number. The flags that the row should not have. You can combine ROW* flags using the OR (|) operator.
flagsOffSalNumberThe flags that the row should have. You can combine ROW* flags using the OR (|) operator.

Returns: SalBoolean. bool

Instance memberCreateColumn(colPos, dispWidth, maxChars, title)

Creates a table window column of string data type at runtime. When you return to design mode, destroys the column.

ParameterTypeDescription
colPosSalNumberThe Column Position
dispWidthSalNumberThe display width of the column in pixels.
maxCharsSalNumberThe maximum number of characters that the column can contain.
titleSalStringThe column title.

Returns: SalNumber. Column ID

Instance memberCreateColumn(colPos, dispWidth, maxChars, title, dataType)

Creates a table window column of string data type at runtime. When you return to design mode, destroys the column.

ParameterTypeDescription
colPosSalNumberThe Column Position
dispWidthSalNumberThe display width of the column in pixels.
maxCharsSalNumberThe maximum number of characters that the column can contain.
titleSalStringThe column title.
dataTypeDataTypeThe SAL data type constant.

Returns: SalNumber. Column ID

Instance memberCreateColumnEx(colPos, dispWidth, title, maxChars, dataType)

Creates a table window column using a given data type at runtime. Allowed types are DT_String, DT_Number and DT_DateTime

ParameterTypeDescription
colPosSalNumber
dispWidthSalNumber
titleSalString
maxCharsSalNumber
dataTypeSalNumber

Returns: SalNumber. Column ID

Instance memberCreateColumnFromClass(className, position)

Uses the specified class as a template to create a new column in a SalTableWindow.

ParameterTypeDescription
classNameSalStringThe name of the column class to be used as a template.
positionSalNumberThe position in the grid or table where the new column where be inserted. 1 is the left-most position. -1 indicates to append the column to the end of the table.

Returns: SalTableColumn.

Instance memberDefineRowHeader(title, width, flags, column)

Defines the appearance and behavior of a table window's row header. The row header is a non-editable area on the left edge of a table window that displays information that stays displayed even when a user scrolls horizontally. A typical use of a row header is the display of row numbers.

ParameterTypeDescription
titleSalStringThe title of the row header column.
widthSalNumberThe width of the row header in pixels.
flagsSalNumberThe row header attributes. You can combine these flags using the OR (|) operator.
columnControlThe column that the row header mirrors. Whatever displays in the row header. If colId is 0, the row header is blank.

Returns: SalBoolean. bool

Instance memberDefineSplitWindow(rows, resizable)

Splits a table window horizontally.

ParameterTypeDescription
rowsSalNumber
resizableSalBoolean

Returns: SalBoolean.

Instance memberDeleteRow(rowNum, flag)

Deletes a row from a table window but not from the database.

ParameterTypeDescription
rowNumSalNumberThe number of the row to delete.
flagSalNumberA constant used to coordinate a delete from the table window with a with a delete from a database result set. This parameter can be one of these values: TBL_Adjust, TBL_NoAdjust

Returns: SalBoolean. bool

Instance memberDeleteSelected(hSql)

Applies a SQL DELETE statement to all table window rows with the ROW Selected flag.

ParameterTypeDescription
hSqlSalSqlHandleSql handle with the prepared DELETE statement

Returns: SalBoolean. bool

Instance memberDeleteSelected(hSql, errorHandler)

Applies a SQL DELETE statement to all table window rows with the ROW Selected flag.

ParameterTypeDescription
hSqlSalSqlHandleSql handle with the prepared DELETE statement
errorHandlerWhenSqlErrorHandler

Returns: SalBoolean. bool

Instance memberDestroyColumns()

Destroys all automatic columns created by SalTblCreateColumn or SalTblPopulate at runtime. This function only works on table windows that contain only automatic columns.

Returns: SalBoolean.

Instance memberDestroyWindow()

Destroys a form window, a top-level table window, or a modeless dialog box created with SalCreateWindow.

Returns: SalBoolean.

Instance memberDisableWindow()

Disables keyboard and mouse input to a window. If the window contains text (for example, a push button), the text is grayed. If the window is a data field, it cannot receive the focus.

Returns: SalBoolean.

Instance memberDisableWindowAndLabel()

Disables keyboard and mouse input to a window and grays out its associated label. A label is the label control that immediately precedes the window in the outline. The label control must have a mnemonic. If the window contains text (for example, a push button), the text is grayed. If the window is a data field, it cannot receive the focus.

Returns: SalBoolean.

Instance memberDoDeletes(hSql, flagsOn)

Applies a SQL DELETE statement to all table window rows that have nFlagsOn flags.

ParameterTypeDescription
hSqlSalSqlHandleSql handle with the prepared DELETE statement
flagsOnSalNumberuses row flags to determine which rows to delete. You can specify either of these flags: ROW Mark Deleted ROW Selected

Returns: SalBoolean. bool

Instance memberDoDeletes(hSql, flagsOn, errorHandler)

Applies a SQL DELETE statement to all table window rows that have nFlagsOn flags.

ParameterTypeDescription
hSqlSalSqlHandleSql handle with the prepared DELETE statement
flagsOnInt32uses row flags to determine which rows to delete. You can specify either of these flags: ROW Mark Deleted ROW Selected
errorHandlerWhenSqlErrorHandler

Returns: SalBoolean. bool

Instance memberDoInserts(hSql, clearFlags)

Applies a SQL INSERT statement to all the rows in a table window that have the ROW_New flag.

ParameterTypeDescription
hSqlSalSqlHandleSql handle with the prepared INSERT statement
clearFlagsSalBooleanWhether to reset the ROW New flag. If TRUE, clears the ROW New flag of each inserted row; if FALSE, does not clear the ROW New flag of each inserted row. This is useful for error handling; if an error occurs, you can rollback the transaction and try again.

Returns: SalBoolean. bool

Instance memberDoInserts(hSql, clearFlags, errorHandler)

Applies a SQL INSERT statement to all the rows in a table window that have the ROW_New flag.

ParameterTypeDescription
hSqlSalSqlHandleSql handle with the prepared INSERT statement
clearFlagsSalBooleanWhether to reset the ROW New flag. If TRUE, clears the ROW New flag of each inserted row; if FALSE, does not clear the ROW New flag of each inserted row. This is useful for error handling; if an error occurs, you can rollback the transaction and try again.
errorHandlerWhenSqlErrorHandler

Returns: SalBoolean. bool

Instance memberDoUpdates(hSql, clearFlags)

Applies a SQL UPDATE statement to all table window rows with the Row_Edited flag.

ParameterTypeDescription
hSqlSalSqlHandleSql handle with the prepared UPDATE statement
clearFlagsSalBooleanIf TRUE, clears the Row Edited flag of each changed row; if FALSE, does not clear the Row Edited flag of each changed row. This is useful for error handling; if an error occurs, you can roll back the transaction and try again.

Returns: SalBoolean. bool

Instance memberDoUpdates(hSql, clearFlags, errorHandler)

Applies a SQL UPDATE statement to all table window rows with the Row_Edited flag.

ParameterTypeDescription
hSqlSalSqlHandleSql handle with the prepared UPDATE statement
clearFlagsSalBooleanIf TRUE, clears the Row Edited flag of each changed row; if FALSE, does not clear the Row Edited flag of each changed row. This is useful for error handling; if an error occurs, you can roll back the transaction and try again.
errorHandlerWhenSqlErrorHandler

Returns: SalBoolean. bool

Instance memberEnableWindow()

Enables keyboard and mouse input to a window.

Returns: SalBoolean.

Instance memberEnableWindowAndLabel()

Enables keyboard and mouse input to a window and enables its associated label as well. A label is the label control that immediately precedes the window in the outline.

Returns: SalBoolean.

Instance memberFetchRow(rowNum)

Sends a SAM_FetchRow message to a table window if the specified row has not been already fetched.

ParameterTypeDescription
rowNumSalNumberThe row number.

Returns: SalNumber. Result

Instance memberFindChild(sWindowName)

This function finds a child window of a given name in the specified window.

ParameterTypeDescription
sWindowNameSalString

Returns: SalWindowHandle.

Instance memberFindNextRow(rowNum, flagsOn, flagsOff)

ParameterTypeDescription
rowNumSalNumber&
flagsOnSalNumber
flagsOffSalNumber

Returns: SalBoolean.

Instance memberFindPrevRow(rowNum, flagsOn, flagsOff)

ParameterTypeDescription
rowNumSalNumber&
flagsOnSalNumber
flagsOffSalNumber

Returns: SalBoolean.

Instance memberFormUnitsToPixels(nFormUnits, bVertical)

Computes the number of pixels in the number of form units. Form units are a unit of measurement used by functions which move and position objects. Form units are computed using physical units (pixels) in conjunction with the window's font size.

ParameterTypeDescription
nFormUnitsSalNumber
bVerticalSalBoolean

Returns: SalNumber.

Static memberFromControl(ctrl)

Casts the control to SalTableWindow. If the control is an instance of SalFormTableWindow, returns the inner table control.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.

Returns: SalTableWindow.

Instance memberGetClassName()

Return the name of a window's class as a string.

Returns: SalString.

Instance memberGetColumnFromId(colId)

Gets the table window column control with the specified id.

ParameterTypeDescription
colIdInt32The column identifier.

Returns: SalTableColumn. SalTableColumn

Instance memberGetColumnFromPos(colPos)

Gets the table window column control at the specified position.

ParameterTypeDescription
colPosInt32The column position.

Returns: SalTableColumn. SalTableColumn

Instance memberGetColumnText(colId, text)

ParameterTypeDescription
colIdSalNumber
textSalString&

Returns: SalBoolean.

Instance memberGetColumnText(colId)

Gets data from a column of a table window's context row.

ParameterTypeDescription
colIdSalNumber

Returns: SalString.

Instance memberGetColumnWindow(nCol, nFlags)

Gets the handle of a table window column.

ParameterTypeDescription
nColSalNumber
nFlagsSalNumber

Returns: SalWindowHandle.

Instance memberGetContextRow()

Returns a table window's current context row. Before sending a SAM_FetchRow message, automatically sets the context row so that assignments made while processing the message reference the correct row.

Returns: SalNumber. Context row

Instance memberGetControlType()

Returns an object's type.

Returns: SalNumber.

Instance memberGetFirstChild(nTypeMask)

Returns the handle of the first child window of the specified type. You can use this function to get the handles of MDI child windows.

ParameterTypeDescription
nTypeMaskSalNumber

Returns: SalWindowHandle.

Instance memberGetFont(sName, nSize, nEnhancement)

ParameterTypeDescription
sNameSalString&
nSizeSalNumber&
nEnhancementSalNumber&

Returns: SalBoolean.

Instance memberGetLabelText(sText, nMaxLength)

ParameterTypeDescription
sTextSalString&
nMaxLengthSalNumber

Returns: SalNumber.

Instance memberGetLabelText(nMaxLength)

Retrieves the text of the label associated to a control. Important: The label control does not require a mnemonic for the functions listed above to operate.

ParameterTypeDescription
nMaxLengthSalNumber

Returns: SalString.

Instance memberGetLinesPerRow(lines)

ParameterTypeDescription
linesSalNumber&

Returns: SalBoolean.

Instance memberGetLinesPerRow()

Retrieves the height of a row in lines.

Returns: SalNumber.

Instance memberGetLocation(nX, nY)

ParameterTypeDescription
nXSalNumber&
nYSalNumber&

Returns: SalBoolean.

Instance memberGetLockedColumns()

Retrieves the number of locked table window columns. Locked table window columns do not scroll horizontally; they are fixed to the left side of the table window. All other columns appear to scroll under the locked columns.

Returns: SalNumber. Number of locked columns

Instance memberGetName(sText)

ParameterTypeDescription
sTextSalString&

Returns: SalBoolean.

Instance memberGetName()

Gets the name of an object.

Returns: SalString.

Instance memberGetNextChild(nTypeMask)

Returns the handle of the next child window that matches a specified type.

ParameterTypeDescription
nTypeMaskSalNumber

Returns: SalWindowHandle.

Instance memberGetNextColumn(prev, forward)

Returns the next column in the columns collection in order of ID.

ParameterTypeDescription
prevSalTableColumn
forwardBoolean

Returns: SalTableColumn.

Instance memberGetParent()

Returns the handle of an object's parent window.

Returns: SalWindowHandle.

Instance memberGetProperty(sName, sValue)

ParameterTypeDescription
sNameSalString
sValueSalString&

Returns: SalBoolean.

Instance memberGetProperty(sName)

Gets the value of a named property.

ParameterTypeDescription
sNameSalString

Returns: SalString.

Instance memberGetRowFlags(rowNum, flags)

Queries a row's flags.

ParameterTypeDescription
rowNumSalNumberThe row number of the row whose flags you want to test.
flagsSalNumberThe row flags to test for. You can combine ROW* flags using the OR (|) operator.

Returns: SalBoolean. bool

Instance memberGetSize(nWidth, nHeight)

ParameterTypeDescription
nWidthSalNumber&
nHeightSalNumber&

Returns: SalBoolean.

Instance memberGetTableFlags(flags)

Tests the state of a table window's flags.

ParameterTypeDescription
flagsSalNumberThe table flags to test. You can combine TBL * flags using the OR (|) operator.

Returns: SalBoolean. True if any of the flags indicated by nFlags are set and FALSE otherwise.

Instance memberGetText(sText, nMaxLen)

ParameterTypeDescription
sTextSalString&
nMaxLenSalNumber

Returns: SalNumber.

Instance memberGetText(nMaxLen)

Retrieves the text of a window.

ParameterTypeDescription
nMaxLenSalNumber

Returns: SalString.

Instance memberGetWindowColor(nColorIndex)

Gets a window's color.

ParameterTypeDescription
nColorIndexSalNumber

Returns: SalNumber.

Instance memberGetWindowState()

Returns a window's current state.

Returns: SalNumber.

Instance memberHideWindow()

Hides a window.

Returns: SalBoolean.

Instance memberHideWindowAndLabel()

Hides a window and its associated label.

Returns: SalBoolean.

Instance memberHitTest(x, y, row, col, location)

ParameterTypeDescription
xSalNumber
ySalNumber
rowSalNumber&
colSalWindowHandle&
locationSalNumber&

Returns: SalBoolean.

Instance memberInsertRow(rowNum)

Inserts a new blank row into a table window.

ParameterTypeDescription
rowNumSalNumberThe row number of the new row.

Returns: SalNumber. New row number

Instance memberInvalidateWindow()

Causes a window to be repainted.

Returns: SalBoolean.

Instance memberIsDerivedFromClass(tClass)

Determines whether a window is an instance of the specified class.

ParameterTypeDescription
tClassType

Returns: SalBoolean.

Instance memberIsEnabled()

Determines whether a window is enabled for mouse and keyboard input.

Returns: SalBoolean.

Instance memberIsVisible()

Determines whether a window is currently visible.

Returns: SalBoolean.

Instance memberKillCellEdit()

Ends edit mode in the current cell.

Returns: SalBoolean.

Instance memberKillFocusRow()

Turns off the table window's focus frame.

Returns: SalBoolean.

Instance memberKillTimer(nIDEvent)

Destroys an object's system timer.

ParameterTypeDescription
nIDEventSalNumber

Returns: SalBoolean.

Instance memberMoveWindow(nXOffset, nYOffset)

Moves a window a given number of form units on the X and Y axes relative to its current position.

ParameterTypeDescription
nXOffsetSalNumber
nYOffsetSalNumber

Returns: SalBoolean.

Instance memberPasteRows()

Pastes the contents of the Clipboard to the specified table window. Assumes the Clipboard data is in text format with cells delimited by tab characters and rows delimited by end-of-line characters. Inserts the new rows into the table window without overwriting existing rows, and converts the data to the data types of the corresponding table window columns.

Returns: SalBoolean. bool

Instance memberPixelsToFormUnits(nNumPixels, bVertical)

Computes the number of form units based on the number of pixels. Form units are a unit of measurement used by functions that move and position objects. Form units are computed using physical units (pixels) in conjunction with a window's font sizes.

ParameterTypeDescription
nNumPixelsSalNumber
bVerticalSalBoolean

Returns: SalNumber.

Instance memberPopulate(hSql, select, method)

Populates the table window with the result of the select.

ParameterTypeDescription
hSqlSalSqlHandle
selectSalString
methodSalNumber

Returns: SalBoolean.

Instance memberPopulate(hSql, select, method, errorHandler)

Populates the table window with the result of the select.

ParameterTypeDescription
hSqlSalSqlHandle
selectSalString
methodSalNumber
errorHandlerWhenSqlErrorHandler

Returns: SalBoolean.

Instance memberPostMessage(nMsg, nMywParam, nMylParam)

Posts the specified message to a window by adding nMsg to hWndReceiver's message queue.

ParameterTypeDescription
nMsgSalNumber
nMywParamSalNumber
nMylParamSalNumber

Returns: SalBoolean.

Instance memberQueryFocusCell(rowNum, column)

ParameterTypeDescription
rowNumSalNumber&
columnSalWindowHandle&

Returns: SalBoolean.

Instance memberQueryRowHeader(title, maxTitle, width, flags, column)

ParameterTypeDescription
titleSalString&
maxTitleSalNumber
widthSalNumber&
flagsSalNumber&
columnSalWindowHandle&

Returns: SalBoolean.

Instance memberQueryScroll(position, minRange, maxRange)

ParameterTypeDescription
positionSalNumber&
minRangeSalNumber&
maxRangeSalNumber&

Returns: SalBoolean.

Instance memberQuerySplitWindow(rows, resizable)

ParameterTypeDescription
rowsSalNumber&
resizableSalBoolean&

Returns: SalBoolean.

Instance memberQueryVisibleRange(minRange, maxRange)

ParameterTypeDescription
minRangeSalNumber&
maxRangeSalNumber&

Returns: SalBoolean.

Instance memberResetTable()

Clears a table window by discarding all rows from the table window cache and setting the table range to 0, -1.

Returns: SalBoolean.

Instance memberScrollRow(rowNum, column)

Scrolls a table window to the specified row and column.

ParameterTypeDescription
rowNumSalNumberThe number of the row to scroll to. If you specify -1, only the column scrolls into view.
columnControlThe table window column to scroll into view. If you specify 0, only the row scrolls into view.

Returns: SalBoolean.

Instance memberScrollRow(rowNum, column, flags)

Scrolls a table window to the specified row and column.

ParameterTypeDescription
rowNumSalNumberThe number of the row to scroll to. If you specify -1, only the column scrolls into view.
columnControlThe table window column to scroll into view. If you specify 0, only the row scrolls into view.
flagsSalNumberThe position of the scroll row. Specify one of these: TBL_AutoScroll, TBL_ScrollBottom, TBL_ScrollTop.

Returns: SalBoolean.

Instance memberSendMessage(nMsg, nMywParam, nMylParam)

Sends the specified message to a window. SalSendMsg does not return until the processing for the message is complete.

ParameterTypeDescription
nMsgSalNumber
nMywParamSalNumber
nMylParamSalNumber

Returns: SalNumber.

Instance memberSendMessageToChildren(nMsg, nMywParam, nMylParam)

Sends a message to all child items of a form window, dialog box, table window, or MDI window.

ParameterTypeDescription
nMsgSalNumber
nMywParamSalNumber
nMylParamSalNumber

Returns: SalBoolean.

Instance memberSetColumnText(columnId, text)

Assigns data to a column of a table window's context row.

ParameterTypeDescription
columnIdSalNumber
textSalString

Returns: SalBoolean.

Instance memberSetContextMenu(sMenuName, nFlags)

Defines a named popup menu that displays automatically when a window receives SAM_ContextMenu.

ParameterTypeDescription
sMenuNameSalString
nFlagsSalNumber

Returns: SalBoolean.

Instance memberSetContextMenu(menuType, nFlags)

Defines a named popup menu that displays automatically when a window receives SAM_ContextMenu.

ParameterTypeDescription
menuTypeType
nFlagsSalNumber

Returns: SalBoolean.

Instance memberSetContextRow(rowNum)

Sets a table window's context row. Setting the context row does not send a SAM_FetchRow message. If the row is not currently in memory, creates a new row in memory and sets its cell values to null.

ParameterTypeDescription
rowNumSalNumberThe row number of the new context row.

Returns: SalBoolean. bool

Instance memberSetCursor(nResourceId, nType)

Sets a window's cursor.

ParameterTypeDescription
nResourceIdInt32
nTypeSalNumber

Returns: SalBoolean.

Instance memberSetCursor(sBlob, nType)

Sets a window's cursor from a string variable.

ParameterTypeDescription
sBlobSalString
nTypeSalNumber

Returns: SalBoolean.

Instance memberSetCursorFile(sFile, nType)

Sets an application-defined cursor for the specified window. Use this function to set the cursor from an image stored in a file.

ParameterTypeDescription
sFileSalString
nTypeSalNumber

Returns: SalBoolean.

Instance memberSetFlagsAnyRows(flags, on, flagsOn, flagsOff)

Sets or clears row flags.

ParameterTypeDescription
flagsSalNumberThe flags to change. You can combine flag values using the OR (|) operator.
onSalBooleanWhether to set (TRUE) or clear (false) the specified flags.
flagsOnSalNumberThe flags that the rows should have. You can combine flag values using the OR (|) operator. Set flagsOn to zero (0) and flagsOff to zero (0) to specify all rows.
flagsOffSalNumberThe flags that the rows should not have. You can combine flag values using the OR (|) operator. Set flagsOn to zero (0) and flagsOff to zero (0) to specify all rows.

Returns: SalBoolean. bool

Instance memberSetFocus()

Sets the focus to a specified window.

Returns: SalWindowHandle.

Instance memberSetFocusCell(rowNum, column)

Sets the focus to the specified table window cell (row and column). Puts the table window into edit mode and lets the user select a portion of the data in the cell.

ParameterTypeDescription
rowNumSalNumberThe row that receives the edit focus.
columnControlThe handle (or name) of the column that receives the edit focus.

Returns: SalBoolean.

Instance memberSetFocusRow(rowNum)

Sets a table window's focus frame row.

ParameterTypeDescription
rowNumSalNumberThe row number of the row to which to apply the focus frame.

Returns: SalBoolean. bool

Instance memberSetFont(sName, nSize, nEnhancement)

Sets a window's font, font size, and font enhancements.

ParameterTypeDescription
sNameSalString
nSizeSalNumber
nEnhancementSalNumber

Returns: SalBoolean.

Instance memberSetLabelText(sText)

Sets the text of the associated label control.

ParameterTypeDescription
sTextSalString

Returns: SalBoolean.

Instance memberSetLinesPerRow(nLines)

Sets the height of a row in lines.

ParameterTypeDescription
nLinesSalNumber

Returns: SalBoolean.

Instance memberSetLocation(nX, nY)

Moves a window to a new position (x, y) on the X and Y axes.

ParameterTypeDescription
nXSalNumber
nYSalNumber

Returns: SalBoolean.

Instance memberSetLockedColumns(locked)

Sets the number of locked columns.

ParameterTypeDescription
lockedSalNumberNumber of locked rows.

Returns: SalBoolean. bool

Instance memberSetProperty(sName, sValue, nLength)

Sets the value of a named property.

ParameterTypeDescription
sNameSalString
sValueSalString
nLengthSalNumber

Returns: SalBoolean.

Instance memberSetRange(min, max)

Defines the minimum and maximum rows (range) of a table.

ParameterTypeDescription
minSalNumberThe lower boundary of the table window.
maxSalNumberThe upper boundary of the table window. Setting nMin and nMax: nMin must be less than or equal to nMax. You can specify an empty table with the range 0, -1. You can specify a dynamic range with the values zero (0) TBLMaxRow , . determines the higher boundary when the application returns TBL_NoMoreRows from a SAM_FetchRow message, or from the return of the SAM_FetchDone message.

Returns: SalBoolean. bool

Instance memberSetRow(rowPos)

Sets the focus to the first, last, next, or previous row in a table window.

ParameterTypeDescription
rowPosSalNumberThe position of the focus row. Specify one of these values: TBL_SetFirstRow TBL_SetLastRow BL_SetNextRow TBL_SetPrevRow

Returns: SalNumber. rowNum

Instance memberSetRowFlags(rowNum, flags, on)

Sets or clears a table window row's flags.

ParameterTypeDescription
rowNumSalNumberThe row number of the row whose flags you want to set or clear.
flagsSalNumberThe row flags. You can combine any of the ROW* flags using the OR (|) operator.
onSalBooleanWhether to set (TRUE) or clear (false) the specified flags.

Returns: SalBoolean. bool

Instance memberSetSize(nWidth, nHeight)

Resizes a window.

ParameterTypeDescription
nWidthSalNumber
nHeightSalNumber

Returns: SalBoolean.

Instance memberSetTableFlags(flags, on)

Sets or clears a table window's flags.

ParameterTypeDescription
flagsSalNumberThe table flags. You can combine any of the TBL_* flags using the OR (|) operator.
onSalBooleanWhether to set (TRUE) or clear (false) the specified flags.

Returns: SalBoolean.

Instance memberSetText(sText)

Sets the text of a window.

ParameterTypeDescription
sTextSalString

Returns: SalBoolean.

Instance memberSetTimer(nIDEvent, nElapseMilliSec)

Creates a system timer for a given object. When a timer event occurs, sends SAM_Timer messages to the object in specified intervals. Timers are a limited global resource. Your application must check the value returned by SalTimerSet to verify that the timer was created.

ParameterTypeDescription
nIDEventSalNumber
nElapseMilliSecSalNumber

Returns: SalBoolean.

Instance memberSetWindowColor(nColorIndex, nColor)

Sets a window's color.

ParameterTypeDescription
nColorIndexSalNumber
nColorSalNumber

Returns: SalBoolean.

Instance memberShowWindow()

Makes a window visible.

Returns: SalBoolean.

Instance memberShowWindowAndLabel()

Makes a window and its associated label visible. A label is the label control that immediately precedes the window in the outline.

Returns: SalBoolean.

Instance memberSortRows(colId, order)

Sorts the rows of a table window based on the values in one of the table window's columns.

ParameterTypeDescription
colIdSalNumber
orderSalNumberTBL SortDecreasing or TBL_SortIncreasing

Returns: SalBoolean.

Instance memberTrackPopupMenu(sMenuName, nFlags, nX, nY, callback)

Creates pop-up menus at runtime.

ParameterTypeDescription
sMenuNameSalString
nFlagsSalNumber
nXSalNumber
nYSalNumber
callbackAction<ContextMenu>

Returns: SalBoolean.

Instance memberTrackPopupMenu(menuType, nFlags, nX, nY, callback)

Creates pop-up menus at runtime.

ParameterTypeDescription
menuTypeType
nFlagsSalNumber
nXSalNumber
nYSalNumber
callbackAction<ContextMenu>

Returns: SalBoolean.

Instance memberUpdateWindow()

Forces the update of a window.

Returns: SalBoolean.

Events

Instance memberWindowActions

WindowActionsEventHandler

Implements

NameDescription
ISalControlAll SAL controls implement this interface.
ISalWindowAll Sal windows (Child windows, Forms, Dialogs and MDIs) implement this interface.