SalWindow

PPJ.Runtime.Windows.SalWindow

Namespace: PPJ.Runtime.Windows

Assembly: PPJ.Runtime.49 (4.9.0.0)

Delegate class for Sal windows functionality. Since we cannot inherit from .NET controls and from our class we need to implement all common functionality here and then delegate calls using method wrappers.

public class SalWindow

Constructors

Creates a new instance of SalWindow and saves the control that is bound to this instance.

Properties

Boolean: Returns/Sets the DesignMode flag.

Boolean: Enables/Disables the dispatching of Windows messages to the SAL MessageActions handler. This is used to suppress message dispatching when there is a potential recursive loop that will cause a stack overflow. For example, when setting the cursor .NET causes the WM_SETCURSOR message to be sent which might cause stack overflow if the function was originally called in response to WM_SETCURSOR.

Point: Returns the location of the mouse, in client's coordinates, when the drag-drop mode was initiated.

Control: Returns the source control for the drag-drop operations.

Boolean: Enables/Disables drag-drop operations.

Point: Returns the location of the mouse (in client's coordinates), when the mouse was released the drag-drop operation terminated.

Control: Returns the drop target control.

Boolean: Enables/Disables keeping the mask when reading the text from a masked edit control.

Boolean: Enables/Disables the mapping of the enter key to the tab key.

SalNamedProperties: Returns the collection of named properties.

ProfessionalColorTable: Returns the shared instance of the ProfessionalColors table. This is used by components that want to use colors similar to WinForms tool strip controls. Currently we use it for SalFormToolBar, XSalToolbar, XSalSeparator, XSalToolbox.

Methods

Adds a string to the list control.

Returns: Int32. The index of the added item or Sys.LB_Err (-1) if there is an error.

Adds the specified handler to the list of delegates registered to handle the WindowActions event.

Adds the handlers from the target window to the list of delegates registered to received the WindowActions event.

Brings a window to the top of all overlapping windows.

Returns: Boolean.

Returns true of the selection in the control with the focus can be copied.

Returns: Boolean.

Returns true of the selection in the control with the focus can be cut.

Returns: Boolean.

Returns true if there is the control with the focus can paste the text in the clipboard.

Returns: Boolean.

Returns true if the control with the focus can undo the last edit operation.

Returns: Boolean.

Centers a window relative to the parent, or the owner, or the screen.

Returns: Boolean.

Deletes the selection in the control with the focus.

Returns: Boolean.

Clears the value from a data field, multi line field, or table window column.

Returns: Boolean.

Clears a window's cursor.

Returns: Boolean.

Deletes all entries from the list control.

Returns: Boolean.

Copies the selection from the control with the focus to the clipboard.

Returns: Boolean.

Clones the specified profile into the custom profile associated to the specified field.

Returns: Boolean.

Copies the text to the clipboard.

Creates a Font object from the specified parameters.

Returns: Font.

Creates modeless dialog boxes, MDI windows, form windows, and top-level table windows at runtime.

Returns: Control.

Creates modeless dialog boxes, MDI windows, form windows, and top-level table windows at runtime.

Returns: Control.

Creates a form window, dialog box, or table window as a child of another form window, dialog box, or toolbar at runtime.

Returns: Control.

Creates a form window, dialog box, or table window as a child of another form window, dialog box, or toolbar at runtime.

Returns: Control.

Deletes the selected from the control with the focus and places it in the clipboard.

Returns: Boolean.

Deletes a list box or combo box entry.

Returns: Int32.

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

Returns: Boolean.

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

Disables keyboard and mouse input to a window and grays out its associated label.

Returns: Boolean.

Indicates whether a window can accept a file from Windows' File Manager.

Returns: Boolean.

Initiates drag-drop mode.

Returns: Boolean.

Initiates drag-drop mode.

Returns: Boolean.

Aborts drag mode.

Returns: Boolean.

Enables keyboard and mouse input to a window.

Returns: Boolean.

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 tab order.

Returns: Boolean.

Destroys a modal dialog box and returns control to the caller of SalModalDialog.

Returns: Boolean.

Draws a double gradient background.

Draws a gradient background.

Finds a child window of a given name in the specified window.

Returns: Control.

Finds a child window of a given type in the specified window.

Returns: Control.

Finds a member control in the specified control. Used as a helper functions to resolve unqualified references.

Returns: Control.

Find a member in the specified control. Used as a helper functions to resolve unqualified references.

Returns: ReferenceInfo.

Dispatches a Sal messages directly to the control's WindowActions handlers.

Returns: WindowActionsEventArgs.

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

Returns: Boolean.

Computes the number of pixels in the number form units.

Returns: Int32.

Retrieves the control associated with the handle and casts it to the target type. If the target type is a second-base class in multiple inheritance tree, uses reflection to cast the control to the second-base instance.

Returns: Object.

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

Returns: String.

Returns the SalClientArea panel.

Returns: SalFormClientArea.

Gets the name of a control.

Returns: String.

Returns: Boolean.

Returns the type of control (TYPE_*).

Returns: Int32.

Returns the maximum length of a data field, multi line text field, or table window column.

Returns: Int32.

Returns a data field's or table window column's data type (DT_*).

Returns: Int32. DT_*

Returns the default push button on a form window or dialog box.

Returns: Control.

Returns the first child window of the specified type.

Returns: Control.

Returns the handle of the control with the focus.

Returns: SalWindowHandle.

Returns: Boolean.

Returns: Boolean.

Gets the names of the screen or printer fonts.

Returns: String[].

Gets the format of a data field or table window column.

Returns: String.

Returns the current format of a data field or table window column.

Returns: Int32.

Returns the contents of a data field or table window column.

Returns: String.

Returns: SalBoolean.

Gets the input mask of a data field or table window column.

Returns: String.

Finds the Label assigned the specified control. Labels are assigned at startup using the TabIndex preceding the control.

Returns: Control.

Retrieves the label text of a control.

Returns: String.

Returns the text of the label associated to the specified control.

Returns: String.

Returns: SalNumber.

Returns the number of list box or combo box entries.

Returns: Int32. Number of items in the list.

Determines whether the specified list box or combo box entry is selected.

Returns: Boolean. True if the item at the index position is selected, otherwise false.

Returns an entry in the list box or combo box.

Returns: String. Text of the specified item.

Returns: Int32.

Returns the length of a list box or combo box entry.

Returns: Int32. Length of the text of the specified item.

Returns: Boolean.

Fetches the selected directory or file name from a list box or combo box.

Returns: String. Name of the selected file in t he control.

Returns the index of the selected entry in a combo box or single-selection list box.

Returns: Int32. Index of the first selected item.

Fills the target array with the indexes of the selected entries in the list box.

Returns: Boolean. Number of selected items, which is the number of elements in selectedArray .

Returns the number of selected entries in a multiple-selection list box.

Returns: Int32. Number of selected items in the list.

Returns a window's current position on the X and Y axes.

Returns: PointF.

Returns the MDI client area of the MDI container.

Returns: MdiClient.

Returns: String.

Converts Windows' LParam value to the corresponding signed X,Y mouse coordinates.

Returns: Point.

Returns the next child control in the tab order that matches a specified type.

Returns: Control.

Returns the handle of an object's parent window.

Returns: Control.

Returns the code of the custom profile associated with the specified field.

Returns: Int32.

Returns: Boolean.

Returns: Boolean.

Gets the value of a named property for a control.

Returns: String.

Returns: Boolean.

Returns the name of a SAM message.

Returns: String.

Returns the current scroll bar value.

Returns: Int32.

Returns: Boolean.

Returns a window's size.

Returns: SizeF.

Returns the collection of controls sorted by the TabIndex.

Returns: Control[].

Returns a window's current state.

Returns: Int32.

Returns the SalStatusBar control.

Returns: SalFormStatusBar.

Gets the text displayed in the status bar of a top-level or MDI window.

Returns: String.

Gets a system color.

Returns: Int32. Color

Retrieves the text of a control.

Returns: String.

Returns: Int32.

Returns the string value of the specified control.

Returns: SalString.

Returns the unmasked content of a data field or table window column.

Returns: SalString.

Returns the SalToolbar control.

Returns: SalFormToolBar.

Gets a window's color.

Returns: Int32.

Returns true if the form has the accessories panels.

Returns: Boolean.

Hides a control. Returns false if the control is already hidden.

Returns: Boolean. True if the control was previously visible.

Hides a control and its associated label.

Returns: Boolean.

Inserts an entry into a list box or combo box at a specified position.

Returns: Int32. The index of the added item or Sys.LB_Err (-1) if there is an error.

Causes a window to be repainted.

Returns: Boolean.

Determines whether a radio button is set or a check box is checked.

Returns: Boolean.

Returns true if a control is an instance of the class.

Returns: Boolean.

Verifies whether a data field, multi line text field, or table window column is null or empty.

Returns: Boolean.

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

Returns: Boolean.

Returns true if the message code is a mouse or a keyboard message.

Returns: Boolean.

Returns the setting of the modified flag for a data field, multi line field, combo box, table window's context row cell.

Returns: Boolean.

Returns true if the message code is a mouse or a keyboard message.

Returns: Boolean.

Returns true if the message is a known SAM message.

Returns: Boolean.

Returns true if the requested scrollbar is visible on the control.

Returns: Boolean.

Validates the contents of a data field or table window column using the current profile.

Returns: Boolean.

Verifies whether a data field, multi line text field, or table window column contains a valid date/time value.

Returns: Boolean.

Verifies whether a data field, multi line text field, or table window column contains a valid decimal value.

Returns: Boolean.

Validates the input mask of a data field or table window column.

Returns: Boolean.

Validates a numeric or date/time picture format.

Returns: Boolean.

Verifies whether a data field, multi line text field, or table window column contains a valid integer value.

Returns: Boolean.

Verifies whether a data field, multi line text field, or table window column contains a valid numeric value..

Returns: Boolean.

Determines whether a window is currently visible.

Returns: Boolean.

Destroys an control's system timer.

Returns: Boolean.

Returns an array of index numbers of selected list box entries.

Returns: IList. List of selected indices.

Arranges minimized child window icons in an MDI window.

Returns: Boolean.

Cascades all non-iconized child windows of an MDI window.

Returns: Boolean.

Tiles all non-iconized child windows of an MDI window. Windows that are not sizable will not be tiled.

Returns: Boolean.

Plays a waveform sound that corresponds to a given system alert level.

Returns: Boolean.

Displays a message box and returns a number that indicates the user's response.

Returns: Int32.

Creates a modal dialog box. See also: EndDialog

Returns: Int32.

Creates a modal dialog box. See also: EndDialog

Returns: Int32.

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

Returns: Boolean.

Pastes the text in the clipboard to the control with the focus.

Returns: Boolean.

Returns: Boolean.

Computes the number of form units based on the number of pixels.

Returns: Single.

Populates a list box or combo box with a result set.

Returns: Boolean.

Populates a list box or combo box with a result set.

Returns: Boolean.

Returns: Boolean.

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

Returns: Boolean.

Prints a form window, table window, or dialog box, including its contents and row header flags.

Prints a form window, table window, or dialog box, including its contents and row header flags.

Removes the specified handler from the list.

Scales the specified pixels by converting to form units first and then back to pixels using the new scaling factor.

Returns: Size.

Scales the specified pixels by converting to form units first and then back to pixels using the new scaling factor.

Returns: Point.

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

Returns: SalNumber.

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

Returns: Boolean.

Returns: SalMessage.

Sends a SAM_Validate message to the object with the focus.

Returns: Int32.

Defines the context menu for a control.

Returns: Boolean.

Defines the context menu for a control.

Returns: Boolean.

Sets a window's cursor.

Returns: Boolean.

Sets a window's cursor.

Returns: Boolean.

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

Returns: Boolean.

Sets a window's cursor from a string variable.

Returns: Boolean.

Sets a limit on the number of characters that a user can enter into a data field, multi line text field, or table window column.

Returns: Boolean.

Sets the default push button of a form window or dialog box.

Returns: Boolean.

Sets the focus to a specified window.

Returns: Control.

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

Returns: Boolean.

Sets the picture format of a data field or table window column.

Returns: Boolean.

Sets a data field's or table window column's format.

Returns: Boolean.

Copies a formatted string to a data field or table window column.

Returns: Boolean.

Sets the input mask of a data field or table window column.

Returns: Boolean.

Changes the Label assigned to the specified control.

Sets the label text of a control.

Returns: Boolean.

Turns off or on redrawing on the list box or combo box.

Returns: Boolean.

Selects or deselects a combo box or single-selection list box entry. If the list box is multi select using -1 as the index value selects all items, while using any other invalid index value deselects all items. For normal list box, using -1 always deselects all items.

Returns: Boolean.

Selects or deselects a combo box or multiple-selection list box entry.

Returns: Boolean.

Finds and selects a combo box or single-selection list box entry.

Returns: Int32. Index of the first item that matches the text or -1 if not found.

Sets tabs in a list box. List boxes use tabs to align columns of data.

Returns: Boolean.

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

Returns: Boolean.

Sets or clears the field modified flag for an editable data field, combo box, multi line text field, table window column.

Returns: Boolean.

Changes the custom profile of the specified field.

Returns: Boolean.

Alters the specified parameter for the custom profile associated to the specified field.

Returns: Boolean.

Alters the specified parameter for the custom profile associated to the specified field.

Returns: Boolean.

Sets the value of a named property for a control.

Returns: Boolean.

Sets a scroll bar's position.

Returns: Boolean.

Sets a scroll bar's range, line increment, and page increment.

Returns: Boolean.

Resizes a window.

Returns: Boolean.

Updates the status bar of the top level form that owns the specified control.

Returns: Boolean.

Updates the status bar of the form that owns the menu item.

Returns: Boolean.

Sets the text of a control to a specified string.

Returns: Boolean.

Creates a system timer for a given control.

Returns: Boolean.

Sets a window's color.

Returns: Boolean.

Shows or hides the status bar on a top-level or MDI window.

Returns: Boolean.

Shows or hides the tool bar on a top-level or MDI window.

Returns: Boolean.

Makes a control visible.

Returns: Boolean. True if the control was previously visible.

Makes a control and its associated label visible.

Returns: Boolean.

Shows context popup menu at runtime.

Returns: Boolean.

Shows context popup menu at runtime.

Returns: Boolean.

Converts .NET colors to the corresponding SAL color constant.

Returns: Int32.

Translate the parent control into a valid control instance: - if the ClientArea is passed returns the form - if a second base visual class is passed, returns the instance - if a embedded TableWindow control is passed, returns the parent TableWindowForm

Returns: Control.

Translates CTD profile codes to the equivalent .NET CultureInfo.

Returns: CultureInfo.

Converts SAL colors to a .NET Color.

Returns: Color. Color

Undoes the last edit in the control with the focus.

Returns: Boolean.

Forces the repaint of a control.

Returns: Boolean.

Updates the form's main menu.

Returns: Boolean.

Validates and formats a data field's or table window column's contents.

Returns: Boolean.

Displays or removes the hourglass cursor.

Returns: Boolean.

Starts the Windows help system.

Returns: Boolean.

Processes messages in the message loop. This function replaces all SalYield* functions. It must be placed in the loop that block execution.

Last updated