Skip to main content

SalTableWindow

Namespace: PPJ.Runtime.Windows

Assembly: PPJ.Runtime.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 memberAllowFiltering

Boolean: Enables/Disables the excel-style filtering feature. (Default: False)

Set the property UseNativeTypes to true to be able to use the type-specific filters, otherwise the filters operate on the displayed value. When using native types in conjunction with a non-standard format or an edit mask that cannot be parsed to a native value, it is possible to lose the edited value when it cannot be parsed.

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 memberCellContextMenu

ContextMenu: Returns/Sets the context menu to use with the cell editor control. (Default: null)

Instance memberCellContextMenuStrip

ContextMenuStrip: Returns/Sets the context menu to use with the cell editor control. (Default: null)

Instance memberCultureInfo

CultureInfo: Returns/Sets the culture to use for this control. (Default: null)

Static memberDefaultFocusRowStyle

FocusRowStyle: Default value for the FocusRowStyle property.

Instance memberGetMergedRangeHandler

GetMergedRangeDelegate: GetMergedRange

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: is modified

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)

Instance memberUseNativeTypes

Boolean: Returns or sets whether the grid tries to parse the edited value into the native type of the column. (Default: False)

When using native types in conjunction with a non-standard format or an edit mask that cannot be parsed to a native value, it is possible to lose the edited value when it cannot be parsed.

Instance memberVirtualMode

Boolean: Enables or disables virtual mode. When virtual mode is on, the rows are fetched from the data source as they are scrolled into view. (Default: False)

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(colStart, colEnd, extraSpace)

Autosizes the specified column.

ParameterTypeDescription
colStartInt32
colEndInt32
extraSpaceInt32

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

Clears a window's cursor.

ParameterTypeDescription
typeSalNumber

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.
columnControlThe column that the row header mirrors. Whatever displays in the row header. If colId is 0, the row header is blank.

Returns: SalBoolean. TRUE if the function succeeds and FALSE if it fails.

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

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

ParameterTypeDescription
windowNameSalString

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 memberFireWindowActions(msg, mywParam, mylParam)

Dispatches the specified message (Window Actions) directly to the control's WindowActions event handlers, without going through Windows message loop.

ParameterTypeDescription
msgSalNumber
mywParamSalNumber
mylParamSalNumber

Returns: SalNumber.

Instance memberFireWindowActionsToChildren(nMsg, nMywParam, nMylParam)

Dispatches the specified message (Window Actions) directly to the children's WindowActions event handlers, without going through Windows message loop.

ParameterTypeDescription
nMsgInt32
nMywParamSalNumber
nMylParamSalNumber

Returns: SalBoolean.

Instance memberFormUnitsToPixels(formUnits, vertical)

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
formUnitsSalNumberThe number of form units.
verticalSalBooleanIf the form units are on the X axis, set this parameter to FALSE. If the form units are on the Y axis, set this parameter to TRUE.

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

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
typeMaskSalNumberOne or more window types combined (using the OR (|) operator) to create a mask of child window types.

Returns: SalWindowHandle.

Instance memberGetFont(name, size, enhancement)

ParameterTypeDescription
nameSalString&
sizeSalNumber&
enhancementSalNumber&

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

ParameterTypeDescription
xSalNumber&
ySalNumber&

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 memberGetMergedRange(row, col, clip)

Overrides GetMergedRange to allow the SalTableWindow class to override the method.

ParameterTypeDescription
rowInt32
colInt32
clipBoolean

Returns: CellRange.

Instance memberGetName(text)

ParameterTypeDescription
textSalString&

Returns: SalBoolean.

Instance memberGetName()

Gets the name of an object.

Returns: SalString.

Instance memberGetNextChild(typeMask)

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

ParameterTypeDescription
typeMaskSalNumberOne or more window types combined (using the OR (|) operator) to create a mask of child window types.

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

ParameterTypeDescription
nameSalString
valueSalString&

Returns: SalBoolean.

Instance memberGetProperty(name)

Gets the value of a named property.

ParameterTypeDescription
nameSalString

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(width, height)

ParameterTypeDescription
widthSalNumber&
heightSalNumber&

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(text, maxLen)

ParameterTypeDescription
textSalString&
maxLenSalNumber

Returns: SalNumber.

Instance memberGetText(maxLen)

Retrieves the text of a window.

ParameterTypeDescription
maxLenSalNumber

Returns: SalString.

Instance memberGetWindowColor(colorIndex)

Gets a window's color.

ParameterTypeDescription
colorIndexSalNumber

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

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

ParameterTypeDescription
typeClassType

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

Destroys an object's system timer.

ParameterTypeDescription
idEventSalNumber

Returns: SalBoolean.

Instance memberMoveWindow(xOffset, yOffset)

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

ParameterTypeDescription
xOffsetSalNumber
yOffsetSalNumber

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(numPixels, vertical)

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
numPixelsSalNumber
verticalSalBooleanIf the form units are on the X axis, set this parameter to FALSE. If the form units are on the Y axis, set this parameter to TRUE.

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 memberPopulateFromXML(file, rootNode, tableNode, useSchema)

Clears a table window or grid and then fills new rows with data from an XML document. Optionally uses an XML schema to set attributes in the table.

ParameterTypeDescription
fileSalStringThe name of the XML document file containing data to be used to populate the table.
rootNodeSalStringThe name of the XML root node of the table, or the name of the XML node pertaining to a table row. See tableNode .
tableNodeSalBooleanIf true, it means that the name specified in rootNode is the actual root node of the table, and this function should use the default name "row" as the name of the node for each table row. If false, it means that the name in rootNode is actually the name of a row node, and each node found with that name should be processed as a table window or grid row.
useSchemaSalBooleanIndicates whether to retrieve and use an XML schema for determining data types and attributes. If true, the schema is retrieved. If false, data is written into table window cells with the presumption that the table structure is already correct. Currently, useSchema cannot be specified true when tableNode is false.

Returns: SalBoolean. True if the function succeeds and FALSE if fails. Some failure conditions, such as an invalid file name or invalid root node name, may cause error message dialogs to be displayed.

After each row of data is populated, this function sends message SAM_XMLRowDone to the table window. If an error occurs during the read, then the data in the table may be incomplete and should not be relied upon. When useSchema is set to true, and if the table window's columns were created at design time, the length of each column's value will be the length assigned at design time. If the table window or grid has no design-time columns and they are being automatically created during the call to this function, then the length of each column's value will be the length that is specified in the XML schema. This raises the possibility of truncation, if the value of an element contains more characters than are specified by the design-time length or the XML schema length.

Instance memberPostMessage(msg, mywParam, mylParam)

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

ParameterTypeDescription
msgSalNumber
mywParamSalNumber
mylParamSalNumber

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(msg, mywParam, mylParam)

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

ParameterTypeDescription
msgSalNumber
mywParamSalNumber
mylParamSalNumber

Returns: SalNumber.

Instance memberSendMessageToChildren(msg, mywParam, mylParam)

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

ParameterTypeDescription
msgSalNumber
mywParamSalNumber
mylParamSalNumber

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

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

ParameterTypeDescription
menuTypeType
flagsSalNumber

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(resource, type)

Sets a window's cursor.

ParameterTypeDescription
resourceSalResourceCursor
typeSalNumber

Returns: SalBoolean.

Instance memberSetCursor(resourceId, type)

Sets a window's cursor.

ParameterTypeDescription
resourceIdInt32
typeSalNumber

Returns: SalBoolean.

Instance memberSetCursor(blob, type)

Sets a window's cursor from a string variable.

ParameterTypeDescription
blobSalString
typeSalNumber

Returns: SalBoolean.

Instance memberSetCursorFile(file, type)

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

ParameterTypeDescription
fileSalString
typeSalNumber

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, editMin, editMax)

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.
editMinSalNumberThe position of the left-most character. When used with nEditMax, this parameter lets the user select a portion of the cell text. nEditMin must be less than or equal to nEditMax. To select all the characters in a cell, specify zero (0) for this parameter and -1 for nEditMax.
editMaxSalNumberThe position of the right-most character. When used with nEditMin, this parameter lets the user select a portion of the cell text. nEditMax must be greater than or equal to nEditMin. To select all the characters in a cell, specify -1 for this parameter and zero (0) for nEditMin.

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

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

ParameterTypeDescription
nameSalString
sizeSalNumber
enhancementSalNumber

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

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

ParameterTypeDescription
xSalNumber
ySalNumber

Returns: SalBoolean.

Instance memberSetLockedColumns(locked)

Sets the number of locked columns.

ParameterTypeDescription
lockedSalNumber

Returns: SalBoolean. bool

Instance memberSetProperty(name, value, length)

Sets the value of a named property.

ParameterTypeDescription
nameSalString
valueSalString
lengthSalNumber

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(width, height)

Resizes a window.

ParameterTypeDescription
widthSalNumber
heightSalNumber

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

Sets the text of a window.

ParameterTypeDescription
textSalString

Returns: SalBoolean.

Instance memberSetTimer(idEvent, elapseMilliSec)

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
idEventSalNumber
elapseMilliSecSalNumber

Returns: SalBoolean.

Instance memberSetWindowColor(colorIndex, color)

Sets a window's color.

ParameterTypeDescription
colorIndexSalNumber
colorSalNumber

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

Creates pop-up menus at runtime.

ParameterTypeDescription
menuNameSalString
flagsSalNumber
xSalNumber
ySalNumber

Returns: SalBoolean.

Instance memberTrackPopupMenu(menuType, flags, x, y)

Creates pop-up menus at runtime.

ParameterTypeDescription
menuTypeType
flagsSalNumber
xSalNumber
ySalNumber

Returns: SalBoolean.

Instance memberUpdateWindow()

Forces the update of a window.

Returns: SalBoolean.

Instance memberWinHelp(file, command, numData, strData)

Starts the Windows help system.

ParameterTypeDescription
fileSalString
commandSalNumber
numDataSalNumber
strDataSalString

Returns: SalBoolean.

Instance memberWriteXMLandSchema(path, writeTypes)

Writes the contents and properties of a table window to an XML file and/or a schema file.

ParameterTypeDescription
pathSalStringThe path and name of the output file. Note that the schema file will have the same name, plus the suffix "_schema".
writeTypesSalNumberOne of the XML constants(XML_DocAndSchema, XML_Document ,XML_Schema), determining whether to write XML, schema, or both.

Returns: SalBoolean. True if the function succeeds.

If the table window contains a Date/Time column, and a cell in that column is empty, then no content will be written for that particular XML document node.

Instance memberWriteXMLandSchemaEx(path, writeTypes, flagsOn, flagsOff)

Writes the contents and properties of a table window to an XML file and/or a schema file.

ParameterTypeDescription
pathSalStringThe path and name of the output file. Note that the schema file will have the same name, plus the suffix "_schema".
writeTypesSalNumberOne of the XML constants(XML_DocAndSchema, XML_Document, XML_Schema), determining whether to write XML, schema, or both.
flagsOnSalNumberA combination of one or more of the row flags. Rows must have these flags on in order to be part of the output to XML.
flagsOffSalNumberA combination of one or more of the row flags. Rows must have these flags off in order to be part of the output to XML.

Returns: SalBoolean. True if the function succeeds.

If the table window contains a Date/Time column, and a cell in that column is empty, then no content will be written for that particular XML document node.

Instance memberYield()

Processes messages for this control.

Events

Instance memberMessageActions

SalMessageHandler Message Actions

Instance memberWindowActions

WindowActionsEventHandler Window Actions

Inherited By

NameDescription
SalQuickToolTipChildTableChild table window with tool tip support

Implements

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