The SalForm type exposes the following members.
Constructors
Name | Description | |
---|---|---|
SalForm |
Constructs a SalForm object.
|
Methods
Name | Description | |
---|---|---|
BringWindowToTop |
Brings a window to the top of all overlapping windows.
| |
CenterWindow |
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.
| |
ClearCursor |
Clears a window's cursor.
| |
ConvertMenuToContextMenuStrip |
Called just before the ContextMenu is about to be shown, making it possible to convert the ContextMenu
into a ContextMenuStrip instead.
| |
CreateForm |
Creates the handle for the form and all the child controls.
| |
CreateTableWindow |
Creates an instance of the inner child table window.
| |
DefWndProc |
Override the default window procedure to be able to create
hidden mdi child forms. For some unknown reason the .NET framwork
forces MDI children to be visible.
(Overrides Form..::..DefWndProc(Message%).) | |
DestroyWindow |
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.
| |
Dispose | Releases the unmanaged resources used by the SalForm and optionally releases the managed resources (Overrides Form..::..Dispose(Boolean).) | |
DrawMenuBar |
Redraws the menu bar for a given form window or top-level table window.
| |
EnableWindow |
Enables keyboard and mouse input to a window.
| |
EndDialog |
Destroys a modal dialog box and returns control to the caller of SalModalDialog.
| |
FindChild |
This function finds a child window of a given name in the specified window.
| |
FormUnitsToPixels |
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.
| |
GetClassName |
Return the name of a window's class as a string.
| |
GetControlType |
Returns an object's type.
| |
GetDefaultButton |
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.
| |
GetFirstChild |
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.
| |
GetFont |
Gets a window's font name, size, and enhancements.
| |
GetLocation |
Returns a window's current position on the X and Y axes.
| |
GetName()()()() |
Gets the name of an object.
| |
GetName(SalString%) |
Gets the name of an object.
| |
GetNextChild |
Returns the handle of the next child window that matches a specified type.
| |
GetParent |
Returns the handle of an object's parent window.
| |
GetProperty(SalString) |
Gets the value of a named property.
| |
GetProperty(SalString, SalString%) |
Gets the value of a named property.
| |
GetSize |
Returns a window's size.
| |
GetStatusBarText(SalNumber) |
Gets the text displayed in the status bar of a top-level or MDI window.
| |
GetStatusBarText(SalString%, SalNumber) |
Gets the text displayed in the status bar of a top-level or MDI window.
| |
GetText(SalNumber) |
Retrieves the text of a window.
| |
GetText(SalString%, SalNumber) |
Retrieves the text of a window.
| |
GetWindowColor |
Gets a window's color.
| |
GetWindowState |
Returns a window's current state.
| |
HideWindow |
Hides a window.
| |
InvalidateWindow |
Causes a window to be repainted.
| |
IsDerivedFromClass |
Determines whether a window is an instance of the specified class.
| |
IsEnabled |
Determines whether a window is enabled for mouse and keyboard input.
| |
IsVisible |
Determines whether a window is currently visible.
| |
KillTimer |
Destroys an object's system timer.
| |
MoveWindow |
Moves a window a given number of form units on the X and Y axes relative to its current
position.
| |
OnActivated | (Overrides Form..::..OnActivated(EventArgs).) | |
OnDeactivate | (Overrides Form..::..OnDeactivate(EventArgs).) | |
OnFontChanged |
Resets the scaling factor when the font changes.
(Overrides Form..::..OnFontChanged(EventArgs).) | |
OnHandleCreated | (Overrides Form..::..OnHandleCreated(EventArgs).) | |
OnHandleDestroyed | (Overrides Form..::..OnHandleDestroyed(EventArgs).) | |
OnMdiChildActivate | (Overrides Form..::..OnMdiChildActivate(EventArgs).) | |
OnMenuComplete | (Overrides Form..::..OnMenuComplete(EventArgs).) | |
OnMouseDown |
Attempts to automatically initiate drag mode if the control responds to SAM_DragCanAutoStart.
(Overrides Control..::..OnMouseDown(MouseEventArgs).) | |
OnPaintBackground |
Fires the internal PaintBackground event.
This allows the handler component to take over the background painting
of the form. This is primarily used to allow the SalQuickTabs control
to paint transparent backgrounds.
(Overrides ScrollableControl..::..OnPaintBackground(PaintEventArgs).) | |
PixelsToFormUnits |
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.
| |
PostMessage |
Posts the specified message to a window by adding nMsg to hWndReceiver's message
queue.
| |
ProcessCmdKey |
Process command keys.
(Overrides Form..::..ProcessCmdKey(Message%, Keys).) | |
ProcessDialogKey |
Processes dialog keys.
This override takes care of:
- converting Enter to Tab
- selecting radio buttons in the same group index on arrows
- processing default button, hidden or in child forms
- processing accelerators
(Overrides Form..::..ProcessDialogKey(Keys).) | |
ProcessTabKey |
Selects the next control in the tab order.
(Overrides Form..::..ProcessTabKey(Boolean).) | |
Scale |
Scales the form and all child controls.
| |
ScaleCore |
Disables .NET 1.1 scaling.
(Overrides Form..::..ScaleCore(Single, Single).) | |
Select |
Selects the next control in the tab order.
(Overrides Form..::..Select(Boolean, Boolean).) | |
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.
| |
SetContextMenu(Type, SalNumber) |
Defines a named popup menu that displays automatically when a window receives SAM_ContextMenu.
| |
SetContextMenu(SalString, SalNumber) |
Defines a named popup menu that displays automatically when a window receives SAM_ContextMenu.
| |
SetCursor(Int32, SalNumber) |
Sets a window's cursor.
| |
SetCursor(SalResourceCursor, SalNumber) |
Sets a window's cursor.
| |
SetCursor(SalString, SalNumber) |
Sets a window's cursor from a string variable.
| |
SetCursorFile |
Sets an application-defined cursor for the specified window. Use this function to
set the cursor from an image stored in a file.
| |
SetFocus |
Sets the focus to a specified window.
| |
SetFont |
Sets a window's font, font size, and font enhancements.
| |
SetLocation |
Moves a window to a new position (x, y) on the X and Y axes.
| |
SetProperty |
Sets the value of a named property.
| |
SetSize |
Resizes a window.
| |
SetStatusBarText |
Displays specified text in the status bar of a top-level or MDI window.
| |
SetText |
Sets the text of a window.
| |
SetTimer |
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.
| |
SetWindowColor |
Sets a window's color.
| |
SetVisibleCore |
Overrides the default behavior to avoid the re-creation
of the underlying window handle when the form is an MDI child.
(Overrides Form..::..SetVisibleCore(Boolean).) | |
Show |
Shows the form.
| |
ShowAsChild(Control, Rectangle, Boolean) |
Shows the form as child control.
| |
ShowAsChild(Control, RectangleF, Boolean) |
Shows the form as child control.
| |
ShowDialog |
Shows the modal dialog.
| |
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 window visible.
| |
TrackPopupMenu(Type, SalNumber, SalNumber, SalNumber) |
Creates pop-up menus at runtime.
| |
TrackPopupMenu(SalString, SalNumber, SalNumber, SalNumber) |
Creates pop-up menus at runtime.
| |
UpdateWindow |
Forces the update of a window.
| |
WinHelp |
Starts the Windows help system.
| |
WndProc |
Window procedure dispatcher.
(Overrides Form..::..WndProc(Message%).) | |
Yield |
Processes messages for this control.
|
Fields
Name | Description | |
---|---|---|
_derived |
Instance of the derived object that inherits this class
as a second base in a multiple inheritance tree.
|
Properties
Name | Description | |
---|---|---|
AutoScaleBaseDpi |
Returns/Sets the DPI used to design this form.
This is the base DPI scale and it will be used to scale the form.
| |
CreateParams |
Overrides the CreateParams property to ensure that the
correct Windows style is used when the form is a child form
and the border is the FixedSingle border.
(Overrides Form..::..CreateParams.) | |
DesignTimeClientRectangle |
Gets the designtime client rectrangle
| |
DesignTimeFont | Obsolete. | |
DesignTimeSize | ||
IconName |
Icon name. The image is loaded from the embedded resources.
| |
NamedProperties |
Returns the collection of named properties.
| |
UseIFSThemeing |
Gets or sets a value indication whether this window and it's child controls
should be themed and custom painted or not.
Note: Themeing of child controls is not controlled by this class, it simply provides information
that child controls are expected to use in determining whether to theme themselves or not.
|
Events
Name | Description | |
---|---|---|
MessageActions | ||
PaintBackground |