PPJ Desktop API
HomeCurrent IssuesDownloads
  • Welcome
  • Concepts
  • PPJ.Runtime.49
    • General
      • Sal
      • Sys
      • SalApplication
      • SalNamedProperties
      • SalWindow
      • WindowActionsEventArgs
      • SalXML
    • COM
      • SalCoClass
      • SalObject
      • SalOleErrorInfo
      • SalSafeArray
      • SalVariant
    • Controls
      • SalActiveX
      • SalBackgroundText
      • SalCheckBox
      • SalComboBox
      • SalContext
      • SalCustomControl
      • SalDataField
        • DataType
      • SalFrame
        • BorderStyle
      • SalGeneralWindow
      • SalGroupBox
      • SalGroupSeparator
      • SalHorizontalScrollBar
      • SalLine
        • LineStyle
        • LineType
      • SalListBox
      • SalMultilineField
      • SalNavigationBar
      • SalOptionButton
        • OptionButtonStyle
      • SalPicture
        • ImageStorage
      • SalPushbutton
      • SalRadioButton
      • SalTableWindow
        • CellType
        • FocusRowStyle
        • RowsSizingStyle
        • SalTableColumn
        • SalTableColumnCollection
        • SalTableRow
        • SalTableRowCollection
        • SalTableWindowBase
      • SalTreeControl
        • SalTreeItem
      • SalUserControl
      • SalVerticalScrollBar
    • Forms
      • AccessoryType
      • SalDialogBox
      • SalForm
      • SalFormClientArea
      • SalFormStatusBar
      • SalFormTableWindow
      • SalFormToolBar
      • SalFormWindow
      • SalMDIWindow
      • SalRibbonBarBase
      • SalRibbonBarForm
      • SalRibbonBarMDI
      • SalRibbonStatusBar
    • Interfaces
      • ISalControl
      • ISalEditControl
      • ISalListControl
      • ISalPictureControl
      • ISalRadioButton
      • ISalReport
      • ISalType
      • ISalAccessory
      • ISalMenu
      • ISalWindow
    • Internet
      • FtpEventArgs
      • FtpEventHandler
      • HttpEventArgs
      • HttpEventHandler
      • SalFtpClient
      • SalHttpClient
      • SalQuickFTP
      • SalQuickHTTP
    • Menus
      • SalContextMenu
      • SalFormMainMenu
      • SalMenuColumn
      • SalMenuItem
      • SalMenuRow
      • SalMenuSeparator
      • SalPopupMenu
      • SalWindowsMenu
    • QO
      • QO
      • SalQuickHTML
      • SalQuickTabs
      • SalQuickTabsDialog
      • SalQuickTabsForm
      • SalQuickTabsParent
      • SalQuickTabsParentDialog
      • SalQuickTabsParentForm
      • SalQuickToolTipCheckBox
      • SalQuickToolTipChildTable
      • SalQuickToolTipComboBox
      • SalQuickToolTipDataField
      • SalQuickToolTipHScrollBar
      • SalQuickToolTipListBox
      • SalQuickToolTipMultilineField
      • SalQuickToolTipOptionButton
      • SalQuickToolTipPicture
      • SalQuickToolTipPushButton
      • SalQuickToolTipRadioButton
      • SalQuickToolTipTableWindow
      • SalQuickToolTipVScrollBar
      • SalToolTipManager
    • Sql
      • SalSqlBindVariables
      • SalSqlError
      • SalSqlHandle
      • SalSqlSessionHandle
      • Sql
      • SqlContext
      • SqlOra
      • WhenSqlError
    • Types
      • SalArray
      • SalArray<T>
      • SalBinary
      • SalBoolean
      • SalDateTime
      • SalFileHandle
      • SalFunctionalClass
      • SalNumber
      • SalResource
      • SalString
      • SalStringContext
      • SalWindowHandle
  • PPJ.Runtime.DDE.49
    • General
      • SalDDE
  • PPJ.Runtime.Vis.49
    • General
      • Vis
      • VisTblEx
    • Controls
      • VisCalendar
      • VisCalendarDropDown
      • VisColorComboBox
      • VisColorListBox
      • VisColorPalette
      • VisColorPaletteBase
      • VisColorPaletteDropDown
      • VisComboBoxBase
      • VisDesktopListBox
      • VisDirListBox
      • VisDirTreeListBox
      • VisDriveListBox
      • VisDropDownBase
      • VisFileListBox
      • VisFontComboBox
      • VisFontListBox
      • VisFontNameComboBox
      • VisFontNameListBox
      • VisListBoxBase
      • VisListBoxExtension
      • VisListView
      • VisListViewDropDown
      • VisMeter
      • VisOutlineComboBox
      • VisOutlineListBox
      • VisPictureComboBox
      • VisPictureListBox
      • VisPoint
      • VisRadioListBox
      • VisRect
      • VisRichEdit
      • VisSize
      • VisSpinField
      • VisSplitter
      • VisSplitterWindow
        • Orientation
  • PPJ.Runtime.XSal.49
    • General
      • XSal
      • XSalScript
    • Controls
      • XSalFlatButton
      • XSalHSplitter
      • XSalSeparator
      • XSalSeparatorDoubleRaised
      • XSalSeparatorEtched
      • XSalSeparatorInvisible
      • XSalSeparatorSingleRaised
      • XSalSplitter
      • XSalToolbar
      • XSalToolbox
      • XSalVSplitter
Powered by GitBook
On this page
  • Constructors
  • SalTableWindow()
  • Properties
  • AllowAutoEditing
  • AllowFiltering
  • AllowRowSizing
  • BackgroundFillInterval
  • BackgroundFillRows
  • CellContextMenu
  • CellContextMenuStrip
  • CultureInfo
  • DefaultFocusRowStyle
  • GetMergedRangeHandler
  • IsEmbedded
  • Item(id)
  • Item(name)
  • Label
  • LinesPerRow
  • Modified
  • NamedProperties
  • ReadOnly
  • RowSizingStyle
  • UseNativeTypes
  • VirtualMode
  • Methods
  • AnyRows(flagsOn, flagsOff)
  • AutoSizeCols(colStart, colEnd, extraSpace)
  • BringWindowToTop()
  • CenterWindow()
  • ClearCursor(type)
  • ClearSelection()
  • ColumnAverage(columnId, flagsOn, flagsOff)
  • ColumnSum(columnId, flagsOn, flagsOff)
  • CopyRows(flagsOn, flagsOff)
  • CreateColumn(colPos, dispWidth, maxChars, title)
  • CreateColumn(colPos, dispWidth, maxChars, title, dataType)
  • CreateColumnEx(colPos, dispWidth, title, maxChars, dataType)
  • CreateColumnFromClass(className, position)
  • DefineRowHeader(title, width, flags, column)
  • DefineSplitWindow(rows, resizable)
  • DeleteRow(rowNum, flag)
  • DeleteSelected(hSql)
  • DeleteSelected(hSql, errorHandler)
  • DestroyColumns()
  • DestroyWindow()
  • DisableWindow()
  • DisableWindowAndLabel()
  • DoDeletes(hSql, flagsOn)
  • DoDeletes(hSql, flagsOn, errorHandler)
  • DoInserts(hSql, clearFlags)
  • DoInserts(hSql, clearFlags, errorHandler)
  • DoUpdates(hSql, clearFlags)
  • DoUpdates(hSql, clearFlags, errorHandler)
  • EnableWindow()
  • EnableWindowAndLabel()
  • FetchRow(rowNum)
  • FindChild(windowName)
  • FindNextRow(rowNum, flagsOn, flagsOff)
  • FindPrevRow(rowNum, flagsOn, flagsOff)
  • FireWindowActions(msg, mywParam, mylParam)
  • FireWindowActionsToChildren(nMsg, nMywParam, nMylParam)
  • FormUnitsToPixels(formUnits, vertical)
  • FromControl(ctrl)
  • GetClassName()
  • GetColumnFromId(colId)
  • GetColumnFromPos(colPos)
  • GetColumnText(colId, text)
  • GetColumnText(colId)
  • GetColumnWindow(nCol, nFlags)
  • GetContextRow()
  • GetControlType()
  • GetFirstChild(typeMask)
  • GetFont(name, size, enhancement)
  • GetLabelText(sText, nMaxLength)
  • GetLabelText(nMaxLength)
  • GetLinesPerRow(lines)
  • GetLinesPerRow()
  • GetLocation(x, y)
  • GetLockedColumns()
  • GetMergedRange(row, col, clip)
  • GetName(text)
  • GetName()
  • GetNextChild(typeMask)
  • GetNextColumn(prev, forward)
  • GetParent()
  • GetProperty(name, value)
  • GetProperty(name)
  • GetRowFlags(rowNum, flags)
  • GetSize(width, height)
  • GetTableFlags(flags)
  • GetText(text, maxLen)
  • GetText(maxLen)
  • GetWindowColor(colorIndex)
  • GetWindowState()
  • HideWindow()
  • HideWindowAndLabel()
  • HitTest(x, y, row, col, location)
  • InsertRow(rowNum)
  • InvalidateWindow()
  • IsDerivedFromClass(typeClass)
  • IsEnabled()
  • IsVisible()
  • KillCellEdit()
  • KillFocusRow()
  • KillTimer(idEvent)
  • MoveWindow(xOffset, yOffset)
  • PasteRows()
  • PixelsToFormUnits(numPixels, vertical)
  • Populate(hSql, select, method)
  • Populate(hSql, select, method, errorHandler)
  • PopulateFromXML(file, rootNode, tableNode, useSchema)
  • PostMessage(msg, mywParam, mylParam)
  • QueryFocusCell(rowNum, column)
  • QueryRowHeader(title, maxTitle, width, flags, column)
  • QueryScroll(position, minRange, maxRange)
  • QuerySplitWindow(rows, resizable)
  • QueryVisibleRange(minRange, maxRange)
  • ResetTable()
  • ScrollRow(rowNum, column)
  • ScrollRow(rowNum, column, flags)
  • SendMessage(msg, mywParam, mylParam)
  • SendMessageToChildren(msg, mywParam, mylParam)
  • SetColumnText(columnId, text)
  • SetContextMenu(sMenuName, nFlags)
  • SetContextMenu(menuType, flags)
  • SetContextRow(rowNum)
  • SetCursor(resource, type)
  • SetCursor(resourceId, type)
  • SetCursor(blob, type)
  • SetCursorFile(file, type)
  • SetFlagsAnyRows(flags, on, flagsOn, flagsOff)
  • SetFocus()
  • SetFocusCell(rowNum, column, editMin, editMax)
  • SetFocusRow(rowNum)
  • SetFont(name, size, enhancement)
  • SetLabelText(sText)
  • SetLinesPerRow(nLines)
  • SetLocation(x, y)
  • SetLockedColumns(locked)
  • SetProperty(name, value, length)
  • SetRange(min, max)
  • SetRow(rowPos)
  • SetRowFlags(rowNum, flags, on)
  • SetSize(width, height)
  • SetTableFlags(flags, on)
  • SetText(text)
  • SetTimer(idEvent, elapseMilliSec)
  • SetWindowColor(colorIndex, color)
  • ShowWindow()
  • ShowWindowAndLabel()
  • SortRows(colId, order)
  • TrackPopupMenu(menuName, flags, x, y)
  • TrackPopupMenu(menuType, flags, x, y)
  • UpdateWindow()
  • WinHelp(file, command, numData, strData)
  • WriteXMLandSchema(path, writeTypes)
  • WriteXMLandSchemaEx(path, writeTypes, flagsOn, flagsOff)
  • Yield()
  • Events
  • MessageActions
  • WindowActions
  • Inherited By
  • Implements
  1. PPJ.Runtime.49
  2. Controls

SalTableWindow

PPJ.Runtime.Windows.SalTableWindow

PreviousSalRadioButtonNextCellType

Last updated 2 years ago

Namespace: PPJ.Runtime.Windows

Assembly: PPJ.Runtime.49 (4.9.0.0)

Table Window Control

public class SalTableWindow : SalTableWindowBase, ISalWindow, ISalControl, IEnumerable<SalTableRow>, IEnumerable
Public Class SalTableWindow
    Inherits SalTableWindowBase
    Implements ISalWindow, ISalControl, IEnumerable(Of SalTableRow), IEnumerable

Constructors

SalTableWindow()

Constructs a SalTableWindow control.

Properties

AllowAutoEditing

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

AllowFiltering

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

Set the property 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.

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.

Methods

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.

Parameter
Type
Description

flagsOn

The flags that the row should have. You can combine ROW * flags using the OR (|) operator.

flagsOff

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

Autosizes the specified column.

Parameter
Type
Description

colStart

colEnd

extraSpace

Brings a window to the top of all overlapping windows.

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.

Clears a window's cursor.

Parameter
Type
Description

type

Deselects all rows of a table window.

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

Parameter
Type
Description

columnId

flagsOn

flagsOff

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

Parameter
Type
Description

columnId

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.

Parameter
Type
Description

flagsOn

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

flagsOff

The flags that the row should have. You can combine ROW* flags using the OR (|) operator.

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

Parameter
Type
Description

colPos

The Column Position

dispWidth

The display width of the column in pixels.

maxChars

The maximum number of characters that the column can contain.

title

The column title.

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

Parameter
Type
Description

colPos

The Column Position

dispWidth

The display width of the column in pixels.

maxChars

The maximum number of characters that the column can contain.

title

The column title.

dataType

The SAL data type constant.

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

Parameter
Type
Description

colPos

dispWidth

title

maxChars

dataType

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

Parameter
Type
Description

className

The name of the column class to be used as a template.

position

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

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.

Parameter
Type
Description

title

The title of the row header column.

width

The width of the row header in pixels.

flags

The row header attributes.

column

The column that the row header mirrors. Whatever displays in the row header. If colId is 0, the row header is blank.

Splits a table window horizontally.

Parameter
Type
Description

rows

resizable

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

Parameter
Type
Description

rowNum

The number of the row to delete.

flag

A 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

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

Parameter
Type
Description

hSql

Sql handle with the prepared DELETE statement

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

Parameter
Type
Description

hSql

Sql handle with the prepared DELETE statement

errorHandler

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

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

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.

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.

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

Parameter
Type
Description

hSql

Sql handle with the prepared DELETE statement

flagsOn

uses row flags to determine which rows to delete. You can specify either of these flags: ROW Mark Deleted ROW Selected

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

Parameter
Type
Description

hSql

Sql handle with the prepared DELETE statement

flagsOn

uses row flags to determine which rows to delete. You can specify either of these flags: ROW Mark Deleted ROW Selected

errorHandler

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

Parameter
Type
Description

hSql

Sql handle with the prepared INSERT statement

clearFlags

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

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

Parameter
Type
Description

hSql

Sql handle with the prepared INSERT statement

clearFlags

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

errorHandler

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

Parameter
Type
Description

hSql

Sql handle with the prepared UPDATE statement

clearFlags

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

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

Parameter
Type
Description

hSql

Sql handle with the prepared UPDATE statement

clearFlags

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

errorHandler

Enables keyboard and mouse input to a window.

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.

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

Parameter
Type
Description

rowNum

The row number.

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

Parameter
Type
Description

windowName

Parameter
Type
Description

rowNum

flagsOn

flagsOff

Parameter
Type
Description

rowNum

flagsOn

flagsOff

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

Parameter
Type
Description

msg

mywParam

mylParam

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

Parameter
Type
Description

nMsg

nMywParam

nMylParam

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.

Parameter
Type
Description

formUnits

The number of form units.

vertical

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

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

Parameter
Type
Description

ctrl

Target control on which to execute the call.

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

Gets the table window column control with the specified id.

Parameter
Type
Description

colId

The column identifier.

Gets the table window column control at the specified position.

Parameter
Type
Description

colPos

The column position.

Parameter
Type
Description

colId

text

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

Parameter
Type
Description

colId

Gets the handle of a table window column.

Parameter
Type
Description

nCol

nFlags

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 an object's type.

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.

Parameter
Type
Description

typeMask

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

Parameter
Type
Description

name

size

enhancement

Parameter
Type
Description

sText

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.

Parameter
Type
Description

nMaxLength

Parameter
Type
Description

lines

Retrieves the height of a row in lines.

Parameter
Type
Description

x

y

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.

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

Parameter
Type
Description

row

col

clip

Parameter
Type
Description

text

Gets the name of an object.

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

Parameter
Type
Description

typeMask

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

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

Parameter
Type
Description

prev

forward

Returns the handle of an object's parent window.

Parameter
Type
Description

name

value

Gets the value of a named property.

Parameter
Type
Description

name

Queries a row's flags.

Parameter
Type
Description

rowNum

The row number of the row whose flags you want to test.

flags

The row flags to test for. You can combine ROW* flags using the OR (|) operator.

Parameter
Type
Description

width

height

Tests the state of a table window's flags.

Parameter
Type
Description

flags

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

Parameter
Type
Description

text

maxLen

Retrieves the text of a window.

Parameter
Type
Description

maxLen

Gets a window's color.

Parameter
Type
Description

colorIndex

Returns a window's current state.

Hides a window.

Hides a window and its associated label.

Parameter
Type
Description

x

y

row

col

location

Inserts a new blank row into a table window.

Parameter
Type
Description

rowNum

The row number of the new row.

Causes a window to be repainted.

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

Parameter
Type
Description

typeClass

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

Determines whether a window is currently visible.

Ends edit mode in the current cell.

Turns off the table window's focus frame.

Destroys an object's system timer.

Parameter
Type
Description

idEvent

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

Parameter
Type
Description

xOffset

yOffset

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.

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.

Parameter
Type
Description

numPixels

vertical

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

Populates the table window with the result of the select.

Parameter
Type
Description

hSql

select

method

Populates the table window with the result of the select.

Parameter
Type
Description

hSql

select

method

errorHandler

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.

Parameter
Type
Description

file

The name of the XML document file containing data to be used to populate the table.

rootNode

The name of the XML root node of the table, or the name of the XML node pertaining to a table row. See tableNode .

tableNode

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

useSchema

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

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.

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

Parameter
Type
Description

msg

mywParam

mylParam

Parameter
Type
Description

rowNum

column

Parameter
Type
Description

title

maxTitle

width

flags

column

Parameter
Type
Description

position

minRange

maxRange

Parameter
Type
Description

rows

resizable

Parameter
Type
Description

minRange

maxRange

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

Scrolls a table window to the specified row and column.

Parameter
Type
Description

rowNum

The number of the row to scroll to. If you specify -1, only the column scrolls into view.

column

The table window column to scroll into view. If you specify 0, only the row scrolls into view.

Scrolls a table window to the specified row and column.

Parameter
Type
Description

rowNum

The number of the row to scroll to. If you specify -1, only the column scrolls into view.

column

The table window column to scroll into view. If you specify 0, only the row scrolls into view.

flags

The position of the scroll row. Specify one of these: TBL_AutoScroll, TBL_ScrollBottom, TBL_ScrollTop.

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

Parameter
Type
Description

msg

mywParam

mylParam

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

Parameter
Type
Description

msg

mywParam

mylParam

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

Parameter
Type
Description

columnId

text

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

Parameter
Type
Description

sMenuName

nFlags

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

Parameter
Type
Description

menuType

flags

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.

Parameter
Type
Description

rowNum

The row number of the new context row.

Sets a window's cursor.

Parameter
Type
Description

resource

type

Sets a window's cursor.

Parameter
Type
Description

resourceId

type

Sets a window's cursor from a string variable.

Parameter
Type
Description

blob

type

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

Parameter
Type
Description

file

type

Sets or clears row flags.

Parameter
Type
Description

flags

The flags to change. You can combine flag values using the OR (|) operator.

on

Whether to set (TRUE) or clear (false) the specified flags.

flagsOn

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

flagsOff

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

Sets the focus to a specified window.

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.

Parameter
Type
Description

rowNum

The row that receives the edit focus.

column

The handle (or name) of the column that receives the edit focus.

editMin

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

editMax

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

Sets a table window's focus frame row.

Parameter
Type
Description

rowNum

The row number of the row to which to apply the focus frame.

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

Parameter
Type
Description

name

size

enhancement

Sets the text of the associated label control.

Parameter
Type
Description

sText

Sets the height of a row in lines.

Parameter
Type
Description

nLines

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

Parameter
Type
Description

x

y

Sets the number of locked columns.

Parameter
Type
Description

locked

Sets the value of a named property.

Parameter
Type
Description

name

value

length

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

Parameter
Type
Description

min

The lower boundary of the table window.

max

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

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

Parameter
Type
Description

rowPos

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

Sets or clears a table window row's flags.

Parameter
Type
Description

rowNum

The row number of the row whose flags you want to set or clear.

flags

The row flags. You can combine any of the ROW* flags using the OR (|) operator.

on

Whether to set (TRUE) or clear (false) the specified flags.

Resizes a window.

Parameter
Type
Description

width

height

Sets or clears a table window's flags.

Parameter
Type
Description

flags

The table flags. You can combine any of the TBL_* flags using the OR (|) operator.

on

Whether to set (TRUE) or clear (false) the specified flags.

Sets the text of a window.

Parameter
Type
Description

text

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.

Parameter
Type
Description

idEvent

elapseMilliSec

Sets a window's color.

Parameter
Type
Description

colorIndex

color

Makes a window visible.

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

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

Parameter
Type
Description

colId

order

TBL SortDecreasing or TBL_SortIncreasing

Creates pop-up menus at runtime.

Parameter
Type
Description

menuName

flags

x

y

Creates pop-up menus at runtime.

Parameter
Type
Description

menuType

flags

x

y

Forces the update of a window.

Starts the Windows help system.

Parameter
Type
Description

file

command

numData

strData

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

Parameter
Type
Description

path

The path and name of the output file. Note that the schema file will have the same name, plus the suffix "_schema".

writeTypes

One of the XML constants(XML_DocAndSchema, XML_Document ,XML_Schema), determining whether to write XML, schema, or both.

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.

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

Parameter
Type
Description

path

The path and name of the output file. Note that the schema file will have the same name, plus the suffix "_schema".

writeTypes

One of the XML constants(XML_DocAndSchema, XML_Document, XML_Schema), determining whether to write XML, schema, or both.

flagsOn

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

flagsOff

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

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.

Processes messages for this control.

Events

Inherited By

Name
Description

Child table window with tool tip support

Implements

Name
Description

All SAL controls implement this interface.

All Sal windows (Child windows, Forms, Dialogs and MDIs) implement this interface.

AllowRowSizing

: Allow row sizing. (Default: False)

BackgroundFillInterval

: Fill interval for the background filler, in milliseconds.

BackgroundFillRows

: Number of rows to load on each interval

CellContextMenu

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

CellContextMenuStrip

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

CultureInfo

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

DefaultFocusRowStyle

: Default value for the FocusRowStyle property.

GetMergedRangeHandler

: GetMergedRange

IsEmbedded

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

Item(id)

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

Item(name)

: Returns the table column object with the specified name.

Label

: Returns/Sets the label associated with this control.

LinesPerRow

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

Modified

: is modified

NamedProperties

: Returns the collection of named properties.

ReadOnly

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

RowSizingStyle

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

UseNativeTypes

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

VirtualMode

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

AnyRows(flagsOn, flagsOff)

Returns: . true if any

AutoSizeCols(colStart, colEnd, extraSpace)

BringWindowToTop()

Returns: .

CenterWindow()

Returns: .

ClearCursor(type)

Returns: .

ClearSelection()

Returns: .

ColumnAverage(columnId, flagsOn, flagsOff)

Returns: .

ColumnSum(columnId, flagsOn, flagsOff)

Returns: .

CopyRows(flagsOn, flagsOff)

Returns: . bool

CreateColumn(colPos, dispWidth, maxChars, title)

Returns: . Column ID

CreateColumn(colPos, dispWidth, maxChars, title, dataType)

Returns: . Column ID

CreateColumnEx(colPos, dispWidth, title, maxChars, dataType)

Returns: . Column ID

CreateColumnFromClass(className, position)

Returns: .

DefineRowHeader(title, width, flags, column)

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

DefineSplitWindow(rows, resizable)

Returns: .

DeleteRow(rowNum, flag)

Returns: . bool

DeleteSelected(hSql)

Returns: . bool

DeleteSelected(hSql, errorHandler)

Returns: . bool

DestroyColumns()

Returns: .

DestroyWindow()

Returns: .

DisableWindow()

Returns: .

DisableWindowAndLabel()

Returns: .

DoDeletes(hSql, flagsOn)

Returns: . bool

DoDeletes(hSql, flagsOn, errorHandler)

Returns: . bool

DoInserts(hSql, clearFlags)

Returns: . bool

DoInserts(hSql, clearFlags, errorHandler)

Returns: . bool

DoUpdates(hSql, clearFlags)

Returns: . bool

DoUpdates(hSql, clearFlags, errorHandler)

Returns: . bool

EnableWindow()

Returns: .

EnableWindowAndLabel()

Returns: .

FetchRow(rowNum)

Returns: . Result

FindChild(windowName)

Returns: .

FindNextRow(rowNum, flagsOn, flagsOff)

Returns: .

FindPrevRow(rowNum, flagsOn, flagsOff)

Returns: .

FireWindowActions(msg, mywParam, mylParam)

Returns: .

FireWindowActionsToChildren(nMsg, nMywParam, nMylParam)

Returns: .

FormUnitsToPixels(formUnits, vertical)

Returns: .

FromControl(ctrl)

Returns: .

GetClassName()

Returns: .

GetColumnFromId(colId)

Returns: . SalTableColumn

GetColumnFromPos(colPos)

Returns: . SalTableColumn

GetColumnText(colId, text)

Returns: .

GetColumnText(colId)

Returns: .

GetColumnWindow(nCol, nFlags)

Returns: .

GetContextRow()

Returns: . Context row

GetControlType()

Returns: .

GetFirstChild(typeMask)

Returns: .

GetFont(name, size, enhancement)

Returns: .

GetLabelText(sText, nMaxLength)

Returns: .

GetLabelText(nMaxLength)

Returns: .

GetLinesPerRow(lines)

Returns: .

GetLinesPerRow()

Returns: .

GetLocation(x, y)

Returns: .

GetLockedColumns()

Returns: . Number of locked columns

GetMergedRange(row, col, clip)

Returns: .

GetName(text)

Returns: .

GetName()

Returns: .

GetNextChild(typeMask)

Returns: .

GetNextColumn(prev, forward)

Returns: .

GetParent()

Returns: .

GetProperty(name, value)

Returns: .

GetProperty(name)

Returns: .

GetRowFlags(rowNum, flags)

Returns: . bool

GetSize(width, height)

Returns: .

GetTableFlags(flags)

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

GetText(text, maxLen)

Returns: .

GetText(maxLen)

Returns: .

GetWindowColor(colorIndex)

Returns: .

GetWindowState()

Returns: .

HideWindow()

Returns: .

HideWindowAndLabel()

Returns: .

HitTest(x, y, row, col, location)

Returns: .

InsertRow(rowNum)

Returns: . New row number

InvalidateWindow()

Returns: .

IsDerivedFromClass(typeClass)

Returns: .

IsEnabled()

Returns: .

IsVisible()

Returns: .

KillCellEdit()

Returns: .

KillFocusRow()

Returns: .

KillTimer(idEvent)

Returns: .

MoveWindow(xOffset, yOffset)

Returns: .

PasteRows()

Returns: . bool

PixelsToFormUnits(numPixels, vertical)

Returns: .

Populate(hSql, select, method)

Returns: .

Populate(hSql, select, method, errorHandler)

Returns: .

PopulateFromXML(file, rootNode, tableNode, useSchema)

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

PostMessage(msg, mywParam, mylParam)

Returns: .

QueryFocusCell(rowNum, column)

Returns: .

QueryRowHeader(title, maxTitle, width, flags, column)

Returns: .

QueryScroll(position, minRange, maxRange)

Returns: .

QuerySplitWindow(rows, resizable)

Returns: .

QueryVisibleRange(minRange, maxRange)

Returns: .

ResetTable()

Returns: .

ScrollRow(rowNum, column)

Returns: .

ScrollRow(rowNum, column, flags)

Returns: .

SendMessage(msg, mywParam, mylParam)

Returns: .

SendMessageToChildren(msg, mywParam, mylParam)

Returns: .

SetColumnText(columnId, text)

Returns: .

SetContextMenu(sMenuName, nFlags)

Returns: .

SetContextMenu(menuType, flags)

Returns: .

SetContextRow(rowNum)

Returns: . bool

SetCursor(resource, type)

Returns: .

SetCursor(resourceId, type)

Returns: .

SetCursor(blob, type)

Returns: .

SetCursorFile(file, type)

Returns: .

SetFlagsAnyRows(flags, on, flagsOn, flagsOff)

Returns: . bool

SetFocus()

Returns: .

SetFocusCell(rowNum, column, editMin, editMax)

Returns: .

SetFocusRow(rowNum)

Returns: . bool

SetFont(name, size, enhancement)

Returns: .

SetLabelText(sText)

Returns: .

SetLinesPerRow(nLines)

Returns: .

SetLocation(x, y)

Returns: .

SetLockedColumns(locked)

Returns: . bool

SetProperty(name, value, length)

Returns: .

SetRange(min, max)

Returns: . bool

SetRow(rowPos)

Returns: . rowNum

SetRowFlags(rowNum, flags, on)

Returns: . bool

SetSize(width, height)

Returns: .

SetTableFlags(flags, on)

Returns: .

SetText(text)

Returns: .

SetTimer(idEvent, elapseMilliSec)

Returns: .

SetWindowColor(colorIndex, color)

Returns: .

ShowWindow()

Returns: .

ShowWindowAndLabel()

Returns: .

SortRows(colId, order)

Returns: .

TrackPopupMenu(menuName, flags, x, y)

Returns: .

TrackPopupMenu(menuType, flags, x, y)

Returns: .

UpdateWindow()

Returns: .

WinHelp(file, command, numData, strData)

Returns: .

WriteXMLandSchema(path, writeTypes)

Returns: . True if the function succeeds.

WriteXMLandSchemaEx(path, writeTypes, flagsOn, flagsOff)

Returns: . True if the function succeeds.

Yield()

MessageActions

Message Actions

WindowActions

Window Actions

Boolean
Int32
Int32
ContextMenu
ContextMenuStrip
CultureInfo
FocusRowStyle
GetMergedRangeDelegate
Boolean
SalTableColumn
SalTableColumn
Control
Int32
Boolean
SalNamedProperties
Boolean
RowsSizingStyle
Boolean
Boolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalNumber
SalNumber
SalBoolean
SalNumber
SalNumber
SalNumber
SalTableColumn
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalNumber
SalWindowHandle
SalBoolean
SalBoolean
SalNumber
SalBoolean
SalNumber
SalTableWindow
SalString
SalTableColumn
SalTableColumn
SalBoolean
SalString
SalWindowHandle
SalNumber
SalNumber
SalWindowHandle
SalBoolean
SalNumber
SalString
SalBoolean
SalNumber
SalBoolean
SalNumber
CellRange
SalBoolean
SalString
SalWindowHandle
SalTableColumn
SalWindowHandle
SalBoolean
SalString
SalBoolean
SalBoolean
SalBoolean
SalNumber
SalString
SalNumber
SalNumber
SalBoolean
SalBoolean
SalBoolean
SalNumber
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalNumber
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalNumber
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalWindowHandle
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalNumber
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalMessageHandler
WindowActionsEventHandler
SalNumber
SalNumber
Int32
Int32
Int32
SalNumber
SalNumber
SalNumber
SalNumber
SalNumber
SalNumber
SalNumber
SalNumber
SalNumber
SalNumber
SalNumber
SalNumber
SalString
SalNumber
SalNumber
SalNumber
SalString
DataType
SalNumber
SalNumber
SalString
SalNumber
SalNumber
SalString
SalNumber
SalString
SalNumber
SalNumber
Control
SalNumber
SalBoolean
SalNumber
SalNumber
SalSqlHandle
SalSqlHandle
WhenSqlErrorHandler
SalSqlHandle
SalNumber
SalSqlHandle
Int32
WhenSqlErrorHandler
SalSqlHandle
SalBoolean
SalSqlHandle
SalBoolean
WhenSqlErrorHandler
SalSqlHandle
SalBoolean
SalSqlHandle
SalBoolean
WhenSqlErrorHandler
SalNumber
SalString
SalNumber&
SalNumber
SalNumber
SalNumber&
SalNumber
SalNumber
SalNumber
SalNumber
SalNumber
Int32
SalNumber
SalNumber
SalNumber
SalBoolean
Control
Int32
Int32
SalNumber
SalString&
SalNumber
SalNumber
SalNumber
SalNumber
SalString&
SalNumber&
SalNumber&
SalString&
SalNumber
SalNumber
SalNumber&
SalNumber&
SalNumber&
Int32
Int32
Boolean
SalString&
SalNumber
SalTableColumn
Boolean
SalString
SalString&
SalString
SalNumber
SalNumber
SalNumber&
SalNumber&
SalNumber
SalString&
SalNumber
SalNumber
SalNumber
SalNumber
SalNumber
SalNumber&
SalWindowHandle&
SalNumber&
SalNumber
Type
SalNumber
SalNumber
SalNumber
SalNumber
SalBoolean
SalSqlHandle
SalString
SalNumber
SalSqlHandle
SalString
SalNumber
WhenSqlErrorHandler
SalString
SalString
SalBoolean
SalBoolean
SalNumber
SalNumber
SalNumber
SalNumber&
SalWindowHandle&
SalString&
SalNumber
SalNumber&
SalNumber&
SalWindowHandle&
SalNumber&
SalNumber&
SalNumber&
SalNumber&
SalBoolean&
SalNumber&
SalNumber&
SalNumber
Control
SalNumber
Control
SalNumber
SalNumber
SalNumber
SalNumber
SalNumber
SalNumber
SalNumber
SalNumber
SalString
SalString
SalNumber
Type
SalNumber
SalNumber
SalResourceCursor
SalNumber
Int32
SalNumber
SalString
SalNumber
SalString
SalNumber
SalNumber
SalBoolean
SalNumber
SalNumber
SalNumber
Control
SalNumber
SalNumber
SalNumber
SalString
SalNumber
SalNumber
SalString
SalNumber
SalNumber
SalNumber
SalNumber
SalString
SalString
SalNumber
SalNumber
SalNumber
SalNumber
SalNumber
SalNumber
SalBoolean
SalNumber
SalNumber
SalNumber
SalBoolean
SalString
SalNumber
SalNumber
SalNumber
SalNumber
SalNumber
SalNumber
SalString
SalNumber
SalNumber
SalNumber
Type
SalNumber
SalNumber
SalNumber
SalString
SalNumber
SalNumber
SalString
SalString
SalNumber
SalString
SalNumber
SalNumber
SalNumber
SalQuickToolTipChildTable
ISalControl
ISalWindow
Boolean
Boolean
UseNativeTypes