The SalWindow type exposes the following members.
Methods
Name | Description | |
---|---|---|
AddListItem |
Adds a string to the list control.
| |
AddMessageActions(Delegate) |
Adds the specified handler to the list of delegates registered
to received the MessageActions event.
| |
AddMessageActions(ISalWindow) |
Adds the handlers from the target window to the
list of delegates registered to received the MessageActions event.
| |
BringToTop |
Brings a window to the top of all overlapping windows.
| |
CanCopy |
Returns true of the selection in the control with the focus can be copied.
| |
CanCut |
Returns true of the selection in the control with the focus can be cut.
| |
CanPaste |
Returns true if there is the control with the focus can paste the
text in the clipboard.
| |
CanUndo |
Returns true if the control with the focus can undo the last edit operation.
| |
Center |
Centers a window relative to the parent, or the owner, or the screen.
| |
Clear()()()() |
Deletes the selection in the control with the focus.
| |
Clear(Control) |
Clears the value from a data field, multiline field, or table window column.
| |
ClearCursor |
Clears a window's cursor.
| |
ClearList |
Deletes all entries from the list control.
| |
Copy |
Copies the selection from the control with the focus to the clipboard.
| |
CopyProfile |
Clones the specified profile into the custom profile associated to the specified field.
| |
CopyString |
Copies the text to the clipboard.
| |
CreateFont |
Creates a Font object from the specified parameters.
| |
CreateWindow(String, Control, array<Object>[]()[][]) | ||
CreateWindow(Type, Control, array<Object>[]()[][]) |
Creates modeless dialog boxes, MDI windows, form windows, and top-level table windows
at runtime.
| |
CreateWindow(String, Control, Single, Single, Single, Single, Int32) |
Creates a form window, dialog box, or table window as a child of another form window,
dialog box, or toolbar at runtime.
| |
CreateWindow(Type, Control, Single, Single, Single, Single, Int32, array<Object>[]()[][]) |
Creates a form window, dialog box, or table window as a child of another form window,
dialog box, or toolbar at runtime.
| |
Cut |
Deletes the selected from the control with the focus and places it in the clipboard.
| |
DeleteListItem |
Deletes a list box or combo box entry.
| |
Destroy |
Destroys a form window, a top-level table window, or a modeless dialog box created
with SalCreateWindow.
| |
DisableWindow |
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.
| |
DisableWindowAndLabel |
Disables keyboard and mouse input to a window and grays out its associated label.
| |
DragAcceptFiles |
Indicates whether a window can accept a file from Windows' File Manager.
| |
DragDropStart()()()() |
Initiates drag-drop mode.
| |
DragDropStart(Point, Object) |
Initiates drag-drop mode.
| |
DragDropStop |
Aborts drag mode.
| |
EnablePostMessageQueueing |
Enables queued version of PostMessage. This must be done per thread having
a message pump.
Remarks
The problem behind this funcationality is that the Enterprise Explorer
keeps the UI thread running during server calls (in order to get good
responsiveness for the user). However, that makes message that are posted
with PostMessage to be executed too early (and commonly, message handlers for
posted messages do database calls)
The solution is to queue all posted messages and on the Application.Idle
event dequeue and send the messages to the correct destinaion. When database
calls are being made and Enterprise Explorer keeps the UI running, the
dequeueing could temporarily be disabled.
| |
EnableWindow |
Enables keyboard and mouse input to a window.
| |
EnableWindowAndLabel |
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.
| |
EndDialog |
Destroys a modal dialog box and returns control to the caller of SalModalDialog.
| |
FillDoubleGradient |
Draws a double gradient background.
| |
FillGradient |
Draws a gradient background.
| |
FindChild(Control, String) |
Finds a child window of a given name in the specified window.
| |
FindChild(Control, Type) |
Finds a child window of a given type in the specified window.
| |
FindControl |
Finds a member control in the specified control.
Used as a helper functions to resolve unqualified references.
| |
FindMember |
Find a member in the specified control.
Used as a helper functions to resolve unqualified references.
| |
FormUnitsToPixels |
Computes the number of pixels in the number form units.
| |
FromHandle |
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.
| |
GetClassName |
Return the name of a window's class as a string.
| |
GetClientArea |
Returns the SalClientArea panel.
| |
GetControlName(Control) |
Gets the name of a control.
| |
GetControlName(Control, SalString%) |
Returns the name of the specified control.
| |
GetControlType |
Returns the type of control (TYPE_*).
| |
GetDataLength |
Returns the maximum length of a data field, multiline text field, or table window
column.
| |
GetDataType |
Returns a data field's or table window column's data type (DT_*).
| |
GetDefaultButton |
Returns the default push button on a form window or dialog box.
| |
GetFirstChild |
Returns the first child window of the specified type.
| |
GetFocus |
Returns the handle of the contorl with the focus.
| |
GetFont(Font, String%, Single%, Int32%) |
Gets a window's font name, size, and enhancements.
| |
GetFont(Control, SalString%, SalNumber%, SalNumber%) |
Gets a window's font name, size, and enhancements.
| |
GetFontNames |
Gets the names of the screen or printer fonts.
| |
GetFormat |
Gets the format of a data field or table window column.
| |
GetFormatCode |
Returns the current format of a data field or table window column.
| |
GetFormattedText |
Returns the contents of a data field or table window column.
| |
GetInputMask |
Gets the input mask of a data field or table window column.
| |
GetLabel |
Finds the Label assigned the specified control.
Labels are assigned at startup using the TabIndex preeceding the control.
| |
GetLabelText(Control) |
Retrieves the label text of a control.
| |
GetLabelText(Control, Int32) |
Returns the text of the label associated to the specified control.
| |
GetLabelText(Control, SalString%, Int32) |
Returns the text of the label associated to the specified control.
| |
GetListItemsCount |
Returns the number of list box or combo box entries.
| |
GetListItemState |
Determines whether the specified list box or combo box entry is selected.
| |
GetListItemText(Control, Int32) |
Returns an entry in the list box or combo box.
| |
GetListItemText(Control, Int32, SalString%) |
Returns an entry in the list box or combo box.
| |
GetListItemTextLength |
Returns the length of a list box or combo box entry.
| |
GetListSelectedFile(Control) |
Fetches the selected directory or file name from a list box or combo box.
| |
GetListSelectedFile(Control, SalString%) |
Fetches the selected directory or file name from a list box or combo box.
| |
GetListSelectedIndex |
Returns the index of the selected entry in a combo box or single-selection list box.
| |
GetListSelectedItems |
Fills the target array with the indexes of the selected entries in the listbox.
| |
GetListSelectedItemsCount |
Returns the number of selected entries in a multiple-selection list box.
| |
GetLocation |
Returns a window's current position on the X and Y axes.
| |
GetMdiClient |
Returns the MDI client area of the MDI container.
| |
GetNextChild |
Returns the next child control in the tab order that matches a specified type.
| |
GetParent |
Returns the handle of an object's parent window.
| |
GetProfile |
Returns the code of the custom profile associated with the specified field.
| |
GetProfileParameter(Control, Int32, SalNumber%) |
Returns the requested parameter for the profile associated to the specified field.
| |
GetProfileParameter(Control, Int32, SalString%) |
Returns the requested parameter for the profile associated to the specified field.
| |
GetProperty(Control, String) |
Gets the value of a named property for a control.
| |
GetProperty(Control, String, SalString%) |
Returns the value of the specified custom property.
| |
GetSalMessageName |
Returns the name of a SAM message.
| |
GetScrollBarPosition |
Returns the current scroll bar value.
| |
GetScrollBarRange |
Gets a scroll bar's scroll range, line increment, and page increment.
| |
GetSize |
Returns a window's size.
| |
GetSortedControls |
Returns the collection of controls sorted by the TabIndex.
| |
GetState |
Returns a window's current state.
| |
GetStatusBar |
Returns the SalStatusBar control.
| |
GetStatusBarText |
Gets the text displayed in the status bar of a top-level or MDI window.
| |
GetSysColor |
Gets a system color.
| |
GetText(Control) |
Retrieves the text of a control.
| |
GetText(Control, Int32) |
Returns the string value of the specified control.
| |
GetText(Control, SalString%, Int32) |
Returns the string value of the specified control.
| |
GetTextUnmasked |
Returns the unmasked content of a data field or table window column.
| |
GetToolBar |
Returns the SalToolbar control.
| |
GetWindowColor |
Gets a window's color.
| |
HasAccessories |
Returns true if the form has the accessories panels.
| |
HideWindow |
Hides a control. Returns false if the control is already hidden.
| |
HideWindowAndLabel |
Hides a control and its associated label.
| |
InsertListItem |
Inserts an entry into a list box or combo box at a specified position.
| |
Invalidate | ||
IsChecked |
Determines whether a radio button is set or a check box is checked.
| |
IsDerivedFrom |
Returns true if a control is an instance of the class.
| |
IsEmpty |
Verifies whether a data field, multiline text field, or table window column is null
or empty.
| |
IsEnabled |
Determines whether a window is enabled for mouse and keyboard input.
| |
IsKeyboardMessage |
Returns true if the message code is a mouse or a keyboard message.
| |
IsModified |
Returns the setting of the modified flag for a data field, multiline field, combo
box, table window's context row cell.
| |
IsMouseMessage |
Returns true if the message code is a mouse or a keyboard message.
| |
IsSalMessage |
Returns true if the message is a known SAM message.
| |
IsValid |
Validates the contents of a data field or table window column using the current profile.
| |
IsValidDateTime |
Verifies whether a data field, multiline text field, or table window column contains
a valid date/time value.
| |
IsValidDecimal |
Verifies whether a data field, multiline text field, or table window column contains
a valid decimal value.
| |
IsValidEditMask |
Validates the input mask of a data field or table window column.
| |
IsValidFormat |
Validates a numeric or date/time picture format.
| |
IsValidInteger |
Verifies whether a data field, multiline text field, or table window column contains
a valid integer value.
| |
IsValidNumber |
Verifies whether a data field, multiline text field, or table window column contains
a valid numeric value..
| |
IsVisible |
Determines whether a window is currently visible.
| |
KillTimer |
Destroys an control's system timer.
| |
ListGetMultiSelect |
Returns an array of index numbers of selected list box entries.
| |
MDIArrangeIcons |
Arranges minimized child window icons in an MDI window.
| |
MDICascade |
Cascades all non-iconized child windows of an MDI window.
| |
MDITile |
Tiles all non-iconized child windows of an MDI window. Windows that are not sizable
will not be tiled.
| |
MessageBeep |
Plays a waveform sound that corresponds to a given system alert level.
| |
MessageBox |
Displays a message box and returns a number that indicates the user's response.
| |
ModalDialog(String, Control, array<Object>[]()[][]) |
Creates a modal dialog box.
| |
ModalDialog(Type, Control, array<Object>[]()[][]) |
Creates a modal dialog box.
| |
Move |
Moves a window a given number of form units on the X and Y axes relative to its current
position.
| |
Paste |
Pastes the text in the clipboard to the control with the focus.
| |
PasteString |
Pastes the contents of the Clipboard into the specified string in text format.
| |
PixelsToFormUnits |
Computes the number of form units based on the number of pixels.
| |
PopulateList(Control, SalSqlHandle, String) |
Populates a list box or combo box with a result set.
| |
PopulateList(Control, SalSqlHandle, String, WhenSqlErrorHandler) |
Populates a list box or combo box with a result set.
| |
PopulateListFiles |
Populates a list box or combo box with a directory of files.
| |
PostMessage |
Posts the specified message to a window by adding nMsg to handleReceiver's message
queue.
| |
PreviewForm |
Prints a form window, table window, or dialog box, including its contents and row
header flags.
| |
PrintForm |
Prints a form window, table window, or dialog box, including its contents and row
header flags.
| |
ProcessWndProc |
Processes windows messages for SAL controls.
| |
RemoveMessageActions |
Removes the specified handler from the list.
| |
Scale(Point, Size, Size) |
Scales the specified pixels by converting to form units first and then
back to pixels using the new scaling factor.
| |
Scale(Size, Size, Size) |
Scales the specified pixels by converting to form units first and then
back to pixels using the new scaling factor.
| |
SendMessage |
Sends the specified message to a window. SalSendMsg does not return until the processing
for the message is complete.
| |
SendMessageToChildren |
Sends a message to all child items of a form window, dialog box, table window, or
MDI window.
| |
SendMessageToChildrenInternal |
Sends a message to all child items of a form window, dialog box, table window, or
MDI window.
| |
SendSalMessage |
Dispatches a Sal messages directly to the control's MessageActions handler.
| |
SendValidateMessage |
Sends a SAM_Validate message to the object with the focus.
| |
SetContextMenu(Control, String) |
Defines the context menu for a control.
| |
SetContextMenu(Control, Type) |
Defines the context menu for a control.
| |
SetCursor(Control, array<Byte>[]()[][], Int32) |
Sets a window's cursor from a string variable.
| |
SetCursor(Control, Int32, Int32) |
Sets a window's cursor.
| |
SetCursor(Control, String, Int32) |
Sets an application-defined cursor for the specified window. Use this function to
set the cursor from an image stored in a file.
| |
SetCursor(Control, Cursor, Int32) |
Sets a window's cursor.
| |
SetDataLength |
Sets a limit on the number of characters that a user can enter into a data field,
multiline text field, or table window column.
| |
SetDefaultButton |
Sets the default push button of a form window or dialog box.
| |
SetFocus |
Sets the focus to a specified window.
| |
SetFont |
Sets a window's font, font size, and font enhancements.
| |
SetFormat |
Sets the picture format of a data field or table window column.
| |
SetFormatCode |
Sets a data field's or table window column's format.
| |
SetFormattedText |
Copies a formatted string to a data field or table window column.
| |
SetInputMask |
Sets the input mask of a data field or table window column.
| |
SetLabel |
Changes the Label assigned to the specified control.
| |
SetLabelText |
Sets the label text of a control.
| |
SetListRedraw | ||
SetListSelectedIndex |
Selects or deselects a combo box or single-selection list box entry.
If the listbox is multiselect using -1 as the index value selects all items, while
using any other invalid index value deselects all items. For normal listbox, using -1
always deselects all items.
| |
SetListSelectedItems |
Selects or deselects a combo box or multiple-selection list box entry.
| |
SetListSelectedText | ||
SetListTabStops |
Sets tabs in a list box. List boxes use tabs to align columns of data.
| |
SetLocation |
Moves a window to a new position (x, y) on the X and Y axes.
| |
SetModified |
Sets or clears the field modified flag for an editable data field, combo box, multiline
text field, table window column.
| |
SetProfile |
Changes the custom profile of the specified field.
| |
SetProfileParameter(Control, Int32, SalNumber) |
Alters the specified parameter for the custom profile associated to the specified field.
| |
SetProfileParameter(Control, Int32, SalString) |
Alters the specified parameter for the custom profile associated to the specified field.
| |
SetProperty |
Sets the value of a named property for a control.
| |
SetScrollBarPosition |
Sets a scroll bar's position.
| |
SetScrollBarRange |
Sets a scroll bar's range, line increment, and page increment.
| |
SetSize |
Resizes a window.
| |
SetStatusBarText(Control, String) |
Updates the status bar of the top level form that owns the specified control.
| |
SetStatusBarText(Menu, String) |
Updates the status bar of the form that owns the menu item.
| |
SetText |
Sets the text of a control to a specified string.
| |
SetTimer |
Creates a system timer for a given control.
| |
SetWindowColor |
Sets a window's color.
| |
ShowStatusBar |
Shows or hides the status bar on a top-level or MDI window.
| |
ShowToolBar |
Shows or hides the tool bar on a top-level or MDI window.
| |
ShowWindow |
Makes a control visible.
| |
ShowWindowAndLabel |
Makes a control and its associated label visible.
| |
TrackPopupMenu(Control, String, Int32, Point) |
Shows context popup menu at runtime.
| |
TrackPopupMenu(Control, Type, Int32, Point) |
Shows context popup menu at runtime.
| |
TranslateColor |
Converts .NET colors to the corresponding SAL color constant.
| |
TranslateControl |
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
| |
TranslateProfile |
Translates CTD profile codes to the equivalent .NET CultureInfo.
| |
TranslateSalColor |
Converts SAL colors to a .NET Color.
| |
Undo |
Undoes the last edit in the control with the focus.
| |
Update |
Forces the repaint of a control.
| |
UpdateMainMenu |
Updates the form's main menu.
| |
WaitCursor |
Displays or removes the hourglass cursor.
| |
Validate |
Validates and formats a data field's or table window column's contents.
| |
WinHelp |
Starts the Windows help system.
| |
Yield |
Processes messages in the message loop.
This function replaces all SalYield* functions.
It must be placed in the loop that block execution.
|