The SalWindowHandle type exposes the following members.

Methods

  NameDescription
Public methodAddListItem
Adds a string to a list box or combo box.
Public methodAnyRows
Determines whether any rows in the specified table window match certain flags.
Public methodBringWindowToTop
Brings a window to the top of all overlapping windows.
Public methodCenterWindow
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.
Public methodClear
Clears the value from a data field, multiline field, or table window column.
Public methodClearCursor
Clears a window's cursor.
Public methodClearImage
Deletes the contents of a picture.
Public methodClearList
Deletes all entries from a list box or combo box.
Public methodClearSelection
Deselects all rows of a table window.
Public methodColumnAverage
Computes the average of all column values or only specified column values in a table window.
Public methodColumnSum
Computes the sum of all column values or only specified column values in a table window.
Public methodCompareTo(Object)
Public methodCompareTo(SalWindowHandle)
Public methodCopyRows
Copies the contents of the specified table window rows to the Clipboard in text format.
Public methodCreateColumn
Creates a table window column of string data type at runtime.
Public methodCreateColumnEx
Creates a table window column using a given data type at runtime. Allowed types are DT_String, DT_Number and DT_DateTime
Public methodDefineCheckBoxColumn
Define a column as a check box.
Public methodDefineDropDownListColumn
Define a column as a drop down list.
Public methodDefinePopupEditColumn
Define a column as a popup edit window.
Public methodDefineRowHeader
Defines the appearance and behavior of a table window's row header.
Public methodDefineSplitWindow
Splits a table window horizontally.
Public methodDeleteListItem
Deletes a list box or combo box entry.
Public methodDeleteRow
Deletes a row from a table window but not from the database.
Public methodDeleteSelected(SalSqlHandle)
Applies a SQL DELETE statement to all table window rows with the ROW Selected flag.
Public methodDeleteSelected(SalSqlHandle, WhenSqlErrorHandler)
Applies a SQL DELETE statement to all table window rows with the ROW Selected flag.
Public methodDestroyColumns
Destroys all automatic columns created by SalTblCreateColumn or SalTblPopulate at runtime. This function only works on table windows that contain only automatic columns.
Public methodDestroyWindow
Destroys a form window, a top-level table window, or a modeless dialog box created with SalCreateWindow.
Public methodDisableWindow
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.
Public methodDisableWindowAndLabel
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.
Public methodDoDeletes(SalSqlHandle, SalNumber)
Applies a SQL DELETE statement to all table window rows that have nFlagsOn flags.
Public methodDoDeletes(SalSqlHandle, SalNumber, WhenSqlErrorHandler)
Applies a SQL DELETE statement to all table window rows that have nFlagsOn flags.
Public methodDoInserts(SalSqlHandle, SalBoolean)
Applies a SQL INSERT statement to all the rows in a table window that have the ROW New flag.
Public methodDoInserts(SalSqlHandle, SalBoolean, WhenSqlErrorHandler)
Applies a SQL INSERT statement to all the rows in a table window that have the ROW New flag.
Public methodDoUpdates(SalSqlHandle, SalBoolean)
Applies a SQL UPDATE statement to all table window rows with the Row Edited flag.
Public methodDoUpdates(SalSqlHandle, SalBoolean, WhenSqlErrorHandler)
Applies a SQL UPDATE statement to all table window rows with the Row Edited flag.
Public methodDrawMenuBar
Redraws the menu bar for a given form window or top-level table window.
Public methodEnableWindow
Enables keyboard and mouse input to a window.
Public methodEnableWindowAndLabel
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.
Public methodEndDialog
Destroys a modal dialog box and returns control to the caller of SalModalDialog.
Public methodEquals
Overrides the Object.Equals() method.
(Overrides ValueType..::..Equals(Object).)
Public methodFetchRow
Sends a SAM_FetchRow message to a table window if the row you specify is not currently in the table window cache.
Public methodFindChild
This function finds a child window of a given name in the specified window.
Public methodFindControl
Finds a member control in the specified control. Used as a helper functions to resolve unqualified references.
Public methodFindMember
Find a member in the specified control. Used as a helper functions to resolve unqualified references.
Public methodFindNextRow
Scans forward in a table looking for a row whose flags match those specified.
Public methodFindPrevRow
Scans backward in a table looking for a row whose flags match those specified.
Public methodFormUnitsToPixels
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.
Public methodGetCellType()()()()
Indicates whether a column is a checkbox, drop down list, popup edit, or standard column.
Public methodGetCellType(SalNumber%)
Indicates whether a column is a checkbox, drop down list, popup edit, or standard column.
Public methodGetClassName
Return the name of a window's class as a string.
Public methodGetColumnFlags
Tests the state of a table window column's flags.
Public methodGetColumnID
Gets a table window column's identifier.
Public methodGetColumnPosition
Gets a table window column's relative position.
Public methodGetColumnText(SalNumber)
Gets data from a column of a table window's context row.
Public methodGetColumnText(SalNumber, SalString%)
Gets data from a column of a table window's context row.
Public methodGetColumnTitle(SalNumber)
Gets the title of a table window column.
Public methodGetColumnTitle(SalString%, SalNumber)
Gets the title of a table window column.
Public methodGetColumnWidth()()()()
Returns the width (in form units) of a table window column.
Public methodGetColumnWidth(SalNumber%)
Returns the width (in form units) of a table window column.
Public methodGetColumnWindow
Gets the handle of a table window column.
Public methodGetContextRow
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.
Public methodGetControlType
Returns an object's type.
Public methodGetDataLength
Returns the maximum length of a data field, multiline text field, or table window column.
Public methodGetDataType
Returns a data field's or table window column's data type.
Public methodGetDefaultButton
Returns the handle of the default push button on a form window or dialog box. The default push button is the one that has the focus by default.
Public methodGetFirstChild
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.
Public methodGetFont
Gets a window's font name, size, and enhancements.
Public methodGetFormat()()()()
Gets the picture format of a data field or table window column.
Public methodGetFormat(SalString%)
Gets the picture format of a data field or table window column.
Public methodGetFormatCode
Returns the current format of a data field or table window column.
Public methodGetFormattedText(SalBoolean)
Copies the contents of a data field or table window column to a string. This function also lets you copy the format of the data.
Public methodGetFormattedText(SalString%, SalBoolean)
Copies the contents of a data field or table window column to a string. This function also lets you copy the format of the data.
Public methodGetHashCode
Overrides the Object.GetHashCode() method
(Overrides ValueType..::..GetHashCode()()()().)
Public methodGetImageBytes
Copies the contents of a picture to a string.
Public methodGetImageDescription(SalNumber)
Retrieves a description of a picture's contents.
Public methodGetImageDescription(SalString%, SalNumber)
Retrieves a description of a picture's contents.
Public methodGetImageString(SalNumber)
Return the contents of a picture into a string.
Public methodGetImageString(SalNumber, SalString%)
Copies the contents of a picture to a string.
Public methodGetInputMask()()()()
Gets the input mask of a data field or table window column.
Public methodGetInputMask(SalString%)
Gets the input mask of a data field or table window column.
Public methodGetLabel
Retrieves the window handle of the label (label control) that is associated with the hWndTarget parameter. There must be a mnemonic in that label, and it must immediately precede hWndTarget in the outline, or this function will fail.
Public methodGetLabelText(SalNumber)
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.
Public methodGetLabelText(SalString%, SalNumber)
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.
Public methodGetLinesPerRow()()()()
Retrieves the height of a row in lines.
Public methodGetLinesPerRow(SalNumber%)
Retrieves the height of a row in lines.
Public methodGetListItemsCount
Returns the number of list box or combo box entries.
Public methodGetListItemState
Determines whether the specified list box or combo box entry is selected.
Public methodGetListItemText(SalNumber)
Returns the text of the specified item.
Public methodGetListItemText(SalNumber, SalString%)
Returns the text of the specified item.
Public methodGetListItemTextLength
Returns the length of a list box or combo box entry.
Public methodGetListSelectedFile()()()()
Fetches the selected directory or file name from a list box or combo box.
Public methodGetListSelectedFile(SalString%)
Fetches the selected directory or file name from a list box or combo box.
Public methodGetListSelectedIndex
Returns the index of the selected entry in a combo box or single-selection list box.
Public methodGetListSelectedItems
Returns an array of index numbers of selected list box entries.
Public methodGetListSelectedItemsCount
Returns the number of selected entries in a multiple-selection list box. Specify single- or multiple-selection in the list box's customizer.
Public methodGetLocation
Returns a window's current position on the X and Y axes.
Public methodGetLockedColumns
Retrieves the number of locked table window columns.
Public methodGetName()()()()
Gets the name of an object.
Public methodGetName(SalString%)
Gets the name of an object.
Public methodGetNextChild
Returns the handle of the next child window that matches a specified type.
Public methodGetObjectData
Public methodGetParent
Returns the handle of an object's parent window.
Public methodGetProperty(SalString)
Gets the value of a named property.
Public methodGetProperty(SalString, SalString%)
Gets the value of a named property.
Public methodGetRowFlags
Queries a row's flags.
Public methodGetScrollBarPosition()()()()
Returns the current scroll bar value.
Public methodGetScrollBarPosition(SalNumber%)
Returns the current scroll bar value.
Public methodGetScrollBarRange
Gets a scroll bar's scroll range, line increment, and page increment.
Public methodGetSize
Returns a window's size.
Public methodGetStatusBarText(SalNumber)
Gets the text displayed in the status bar of a top-level or MDI window.
Public methodGetStatusBarText(SalString%, SalNumber)
Gets the text displayed in the status bar of a top-level or MDI window.
Public methodGetTableFlags
Tests the state of a table window's flags.
Public methodGetText(SalNumber)
Retrieves the text of a window.
Public methodGetText(SalString%, SalNumber)
Retrieves the text of a window.
Public methodGetTextUnmasked()()()()
Unmasks the text from a masked edit control.
Public methodGetTextUnmasked(SalString%)
Unmasks the text from a masked edit control.
Public methodGetWindowColor
Gets a window's color.
Public methodGetWindowState
Returns a window's current state.
Public methodHideWindow
Hides a window.
Public methodHideWindowAndLabel
Hides a window and its associated label.
Public methodHitTest
Returns the part of the table window located at a given coordinate.
Public methodInsertListItem
Inserts an entry into a list box or combo box at a specified position.
Public methodInsertRow
Inserts a new blank row into a table window.
Public methodInvalidateWindow
Causes a window to be repainted.
Public methodIsChecked
Determines whether a radio button is set or a check box is checked.
Public methodIsDerivedFromClass
Determines whether a window is an instance of the specified class.
Public methodIsEmpty
Verifies whether a data field, multiline text field, or table window column is null or empty.
Public methodIsEnabled
Determines whether a window is enabled for mouse and keyboard input.
Public methodIsModified
Returns the setting of the Field Edit Flag for a data field, multiline field, combo box, table window's context row cell, or picture.
Public methodIsValid
Validates the contents of a data field or table window column using the current profile.
Public methodIsValidDateTime
Verifies whether a data field, multiline text field, or table window column contains a valid date/time value. For multiline text fields, the date/time value must be the only item in the field.
Public methodIsValidDecimal
Verifies whether a data field, multiline text field, or table window column contains a valid decimal value. For multiline text fields, the decimal value must be the only item in the field.
Public methodIsValidInteger
Verifies whether a data field, multiline text field, or table window column contains a valid integer value. For multiline text fields, the integer value must be the only item in the field.
Public methodIsValidNumber
Verifies whether a data field, multiline text field, or table window column contains a valid numeric value. Valid numbers are integers or floating point numbers, negative and positive. For multiline text fields, the numeric value must be the only item in the field.
Public methodIsVisible
Determines whether a window is currently visible.
Public methodKillCellEdit
Takes a row out of edit mode and selects the row. This causes the row to receive both SAM_Validate and SAM_KillFocus messages.
Public methodKillFocusRow
Public methodKillTimer
Destroys an object's system timer.
Public methodMDIArrangeIcons
Arranges minimized child window icons in an MDI window.
Public methodMDICascade
Cascades all non-iconized child windows of an MDI window.
Public methodMDITile
Tiles all non-iconized child windows of an MDI window. Windows that are not sizable will not be tiled.
Public methodMoveWindow
Moves a window a given number of form units on the X and Y axes relative to its current position.
Public methodPasteRows
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.
Public methodPixelsToFormUnits
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.
Public methodPopulate(SalSqlHandle, SalString)
Compiles, binds, and executes a SQL SELECT statement, then fetches the rows of the result set and populates a table window with them.
Public methodPopulate(SalSqlHandle, SalString, SalNumber)
Compiles, binds, and executes a SQL SELECT statement, then fetches the rows of the result set and populates a table window with them.
Public methodPopulate(SalSqlHandle, SalString, WhenSqlErrorHandler)
Compiles, binds, and executes a SQL SELECT statement, then fetches the rows of the result set and populates a table window with them.
Public methodPopulate(SalSqlHandle, SalString, SalNumber, WhenSqlErrorHandler)
Compiles, binds, and executes a SQL SELECT statement, then fetches the rows of the result set and populates a table window with them.
Public methodPopulateList(SalSqlHandle, SalString)
Populates a list box or combo box with a result set. SalListPopulate overrides any settings made with SalListSetTabs. If the SELECT statement returns data from multiple columns, each column's data displayed in a list box is separated by tabs. However, due to a Microsoft Windows limitation, each column's data displayed in a combo box is separated by a single '|' character. There is no space between one column's data, the separator character, and another column's data.
Public methodPopulateList(SalSqlHandle, SalString, WhenSqlErrorHandler)
Populates a list box or combo box with a result set. SalListPopulate overrides any settings made with SalListSetTabs. If the SELECT statement returns data from multiple columns, each column's data displayed in a list box is separated by tabs. However, due to a Microsoft Windows limitation, each column's data displayed in a combo box is separated by a single '|' character. There is no space between one column's data, the separator character, and another column's data.
Public methodPopulateListFiles
Populates a list box or combo box with a directory of files.
Public methodPostMessage
Posts the specified message to a window by adding nMsg to hWndReceiver's message queue.
Public methodQueryCheckBoxColumn
If the column is defined as a check box, this function retrieves information about the check box and returns TRUE. If it is not a check box, this function returns FALSE.
Public methodQueryDropDownListColumn
If the column is defined as a drop down list, this function retrieves information about the list and returns TRUE. If it is not a drop down list, this function returns FALSE.
Public methodQueryFocusCell
Identifies the cell in a table window with the focus.
Public methodQueryPopupEditColumn
If the column is defined as a popup edit, this function retrieves information about the popup edit and returns TRUE. If it is not a popup edit, this function returns FALSE.
Public methodQueryRowHeader
Gets a table window's row header definition.
Public methodQueryScroll
Returns a table window's current scroll position and range. The scroll position is the row number of the row that is currently at the top of the window. You set the table window range with SalTblSetRange and changes it when you insert or delete rows from the table window.
Public methodQuerySplitWindow
Specifies how a table window is split horizontally.
Public methodQueryVisibleRange
Returns the current range of visible rows in a table window.
Public methodResetTable
Clears a table window by discarding all rows from the table window cache and setting the table range to 0, -1.
Public methodScrollRow(SalNumber, Control)
Scrolls a table window to the specified row and column.
Public methodScrollRow(SalNumber, Control, SalNumber)
Scrolls a table window to the specified row and column.
Public methodSendMessage
Sends the specified message to a window. SalSendMsg does not return until the processing for the message is complete.
Public methodSendMessageToChildren
Sends a message to all child items of a form window, dialog box, table window, or MDI window.
Public methodSetCellTextColor(SalNumber)
Changes a table window cell's text color.
Public methodSetCellTextColor(SalNumber, SalBoolean)
Changes a table window cell's text color.
Public methodSetColumnFlags
Sets or clears a table window column's flags.
Public methodSetColumnPos
Moves a table window column to a new position.
Public methodSetColumnPosition
Moves a table window column to a new position.
Public methodSetColumnText
Assigns data to a column of a table window's context row.
Public methodSetColumnTitle
Sets the title of a table window column.
Public methodSetColumnWidth
Sets a table window column's display width.
Public methodSetContextMenu(Type, SalNumber)
Defines a named popup menu that displays automatically when a window receives SAM_ContextMenu.
Public methodSetContextMenu(SalString, SalNumber)
Defines a named popup menu that displays automatically when a window receives SAM_ContextMenu.
Public methodSetContextRow
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.
Public methodSetCursor(Int32, SalNumber)
Sets a window's cursor.
Public methodSetCursor(SalResourceCursor, SalNumber)
Sets a window's cursor.
Public methodSetCursor(SalString, SalNumber)
Sets a window's cursor from a string variable.
Public methodSetCursorFile
Sets an application-defined cursor for the specified window. Use this function to set the cursor from an image stored in a file.
Public methodSetDataLength
Sets a limit on the number of characters that a user can enter into a data field, multiline text field, or table window column.
Public methodSetDefaultButton
Sets the default push button of a form window or dialog box.
Public methodSetFlagsAnyRows
Sets or clears row flags.
Public methodSetFocus
Sets the focus to a specified window.
Public methodSetFocusCell
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.
Public methodSetFocusRow
Sets a table window's focus frame row.
Public methodSetFont
Sets a window's font, font size, and font enhancements.
Public methodSetFormat
Sets the picture format of a data field or table window column.
Public methodSetFormatCode
Sets a data field's or table window column's format.
Public methodSetImageBytes
Inserts the contents of a picture to an image without the image header.
Public methodSetImageFile
Inserts a file's contents into a picture.
Public methodSetImageFit
Sets the fit for a picture.
Public methodSetImageHandle
Sets the picture image of a picture window with the handle of a bitmap (HBITMAP) or icon (HICON). Usually, HBITMAPs and HICONs are loaded from DLLs.
Public methodSetImageResource
Inserts a resource into a picture.
Public methodSetImageString
Inserts the contents of a string into a picture.
Public methodSetInputMask
Sets the input mask of a data field or table window column.
Public methodSetLabelText
Sets the text of the associaetd label control.
Public methodSetLinesPerRow
Sets the height of a row in lines.
Public methodSetListRedraw
Redraws entries in a list box or combo box, or prevents them from being redrawn.
Public methodSetListSelectedIndex
Selects or deselects a combo box or single-selection list box entry.
Public methodSetListSelectedItems
Selects or deselects a combo box or multiple-selection list box entry.
Public methodSetListSelectedText
Finds and selects a combo box or single-selection list box entry.
Public methodSetListTabStops
Sets tabs in a list box.
Public methodSetLocation
Moves a window to a new position (x, y) on the X and Y axes.
Public methodSetLockedColumns
Sets the number of locked table window columns.
Public methodSetModified
Sets or clears the field edit flag for an editable data field, combo box, multiline text field, table window column, or picture.
Public methodSetProperty
Sets the value of a named property.
Public methodSetRange
Defines the minimum and maximum rows (range) of a table.
Public methodSetRow
Sets the focus to the first, last, next, or previous row in a table window.
Public methodSetRowFlags
Sets or clears a table window row's flags.
Public methodSetScrollBarPosition
Sets the scrollbar's value.
Public methodSetScrollBarRange
Sets a scroll bar's range, line increment, and page increment. When the scroll bar is created, assigns it these values: Minimum scroll position0 Maximum scroll position100 Line Increment1 Page Increment10 If the scroll bar's current position is outside the new range, its position changes to one within the new range. The range of a scroll bar is -32,767 to 32,767.
Public methodSetSize
Resizes a window.
Public methodSetStatusBarText
Displays specified text in the status bar of a top-level or MDI window.
Public methodSetTableFlags
Sets or clears a table window's flags.
Public methodSetText(SalString)
Sets the text of a window.
Public methodSetText(SalString, SalBoolean)
Copies a string to a data field or table window column. After copying the string to the field, formats the string.
Public methodSetTimer
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.
Public methodSetWindowColor
Sets a window's color.
Public methodShowStatusBar
Shows or hides the status bar on a top-level or MDI window.
Public methodShowToolBar
Shows or hides the tool bar on a top-level or MDI window.
Public methodShowWindow
Makes a window visible.
Public methodShowWindowAndLabel
Makes a window and its associated label visible. A label is the label control that immediately precedes the window in the outline.
Public methodSortRows
Sorts the rows of a table window based on the values in one of the table window's columns.
Public methodToControl
Returns the Control associated with this handle.
Public methodToInt32
Converts a window handle to a number.
Public methodToIntPtr
Returns the IntPtr value.
Public methodToNumber
Returns the value converted to SalNumber.
Public methodToString
Overrides the ToString() method and redirects it to the wrapped member.
(Overrides ValueType..::..ToString()()()().)
Public methodTrackPopupMenu(Type, SalNumber, SalNumber, SalNumber)
Creates pop-up menus at runtime.
Public methodTrackPopupMenu(SalString, SalNumber, SalNumber, SalNumber)
Creates pop-up menus at runtime.
Public methodUpdateWindow
Forces the update of a window.
Public methodValidate()()()()
Validates and formats a data field's or table window column's contents.
Public methodValidate(SalNumber)
Validates and formats a data field's or table window column's contents.
Public methodWinHelp
Starts the Windows help system.
Public methodYield
Processes messages for this control.

See Also