PPJ Web API
HomeCurrent IssuesDownloads
  • Welcome
  • Concepts
  • PPJ.Web.49
    • General
      • Sal
      • Sys
      • SalApplication
      • SalNamedProperties
      • SalWindow
      • WindowActionsEventArgs
      • SalXML
    • COM
      • SalCoClass
      • SalObject
      • SalOleErrorInfo
      • SalSafeArray
      • SalVariant
      • stdole_Font
      • stdole_Picture
      • stdole_StdFont
      • stdole_StdPicture
    • Controls
      • SalBackgroundText
      • SalCheckBox
      • SalComboBox
      • SalContext
      • SalCustomControl
      • SalDataField
        • DataType
      • SalFrame
      • SalGeneralWindow
      • SalGroupBox
      • SalGroupSeparator
      • SalHorizontalScrollBar
      • SalLine
      • SalListBox
      • SalMultilineField
      • SalNavigationBar
      • SalOptionButton
        • OptionButtonStyle
      • SalPicture
        • ImageStorage
      • SalPushbutton
      • SalRadioButton
      • SalTimer
      • SalTreeControl
        • SalTreeItem
      • SalUserControl
      • SalVerticalScrollBar
    • Forms
      • AccessoryType
      • SalDialogBox
      • SalForm
      • SalFormClientArea
      • SalFormStatusBar
      • SalFormTableWindow
      • SalFormToolBar
      • SalFormWindow
      • SalMDIWindow
      • SalRibbonBarBase
      • SalRibbonBarForm
      • SalRibbonBarMDI
    • Interfaces
      • ISalType
      • ISalAccessory
      • ISalControl
      • ISalEditControl
      • ISalListControl
      • ISalListItem
      • ISalMenu
      • ISalPictureControl
      • ISalRadioButton
      • ISalReport
      • ISalWindow
    • Menus
      • SalContextMenu
      • SalFormMainMenu
      • SalMenuItem
      • SalMenuSeparator
      • SalPopupMenu
      • SalWindowsMenu
    • QO
      • SalQuickTabs
      • SalQuickTabsDialog
      • SalQuickTabsForm
      • SalQuickTabsParent
      • SalQuickTabsParentDialog
      • SalQuickTabsParentForm
    • Sql
      • SalSqlBindVariables
      • SalSqlError
      • SalSqlHandle
      • SalSqlSessionHandle
      • Sql
      • SqlContext
      • SqlOra
      • WhenSqlError
    • Types
      • SalArray<T>
      • SalBinary
      • SalBoolean
      • SalDateTime
      • SalFileHandle
      • SalFunctionalClass
      • SalNumber
      • SalResource
      • SalString
      • SalStringContext
      • SalWindowHandle
  • PPJ.Web.Vis.49
    • General
      • Vis
      • VisTblEx
    • Controls
      • VisCalendar
      • VisCalendarDropDown
      • VisColorComboBox
      • VisColorListBox
      • VisComboBoxBase
      • VisDesktopListBox
      • VisDirListBox
      • VisDirTreeListBox
      • VisDriveComboBox
      • VisDriveListBox
      • VisDropDownBase
      • VisFileListBox
      • VisFontComboBox
      • VisFontListBox
      • VisFontNameComboBox
      • VisFontNameListBox
      • VisListBoxBase
      • VisListBoxExtension
      • VisListView
      • VisListViewDropDown
      • VisMeter
      • VisOutlineComboBox
      • VisOutlineListBox
      • VisPictureComboBox
      • VisPictureListBox
      • VisPoint
      • VisRadioListBox
      • VisRect
      • VisSize
      • VisSpinField
      • VisSplitter
      • VisSplitterWindow
        • Orientation
  • PPJ.Web.XSal.49
    • General
      • XSal
      • XSalScript
    • Controls
      • XSalFlatButton
      • XSalHSplitter
      • XSalSplitter
      • XSalToolbar
      • XSalToolbox
      • XSalVSplitter
Powered by GitBook
On this page
  • Properties
  • CultureInfo
  • IconName
  • NamedProperties
  • ReturnValue
  • Methods
  • BringWindowToTop()
  • CenterWindow()
  • ClearCursor(nType)
  • Destroy()
  • DestroyWindow()
  • DisableWindow()
  • DrawMenuBar()
  • EnableWindow()
  • EndDialog(nReturn)
  • FindChild(sWindowName)
  • FormUnitsToPixels(nFormUnits, bVertical)
  • GetClassName()
  • GetControlType()
  • GetDefaultButton()
  • GetFirstChild(nTypeMask)
  • GetFont(sName, nSize, nEnhancement)
  • GetLocation(nX, nY)
  • GetName(sText)
  • GetName()
  • GetNextChild(nTypeMask)
  • GetParent()
  • GetProperty(sName, sValue)
  • GetProperty(sName)
  • GetSize(nWidth, nHeight)
  • GetStatusBarText(sText, nMaxLen)
  • GetStatusBarText(nMaxLen)
  • GetText(sText, nMaxLen)
  • GetText(nMaxLen)
  • GetWindowColor(nColorIndex)
  • GetWindowState()
  • HideWindow()
  • InvalidateWindow()
  • IsDerivedFromClass(tClass)
  • IsEnabled()
  • IsVisible()
  • KillTimer(nIDEvent)
  • MoveWindow(nXOffset, nYOffset)
  • PixelsToFormUnits(nNumPixels, bVertical)
  • PostMessage(nMsg, nMywParam, nMylParam)
  • Print()
  • SendMessage(nMsg, nMywParam, nMylParam)
  • SendMessageToChildren(nMsg, nMywParam, nMylParam)
  • SetContextMenu(sMenuName, nFlags)
  • SetContextMenu(menuType, nFlags)
  • SetCursor(nResourceId, nType)
  • SetCursor(sBlob, nType)
  • SetCursorFile(sFile, nType)
  • SetFocus()
  • SetFont(sName, nSize, nEnhancement)
  • SetLocation(nX, nY)
  • SetProperty(sName, sValue, nLength)
  • SetSize(nWidth, nHeight)
  • SetStatusBarText(sText)
  • SetText(sText)
  • SetTimer(nIDEvent, nElapseMilliSec)
  • SetWindowColor(nColorIndex, nColor)
  • Show(parent)
  • ShowAsChild(parent, rect, border)
  • ShowAsChild(parent, rect, border)
  • ShowDialog()
  • ShowDialog(parent)
  • ShowDialog(parent, closeHandler)
  • ShowDialogAsync(parent)
  • ShowStatusBar(bShow)
  • ShowToolBar(bShow)
  • ShowWindow()
  • TrackPopupMenu(sMenuName, nFlags, nX, nY, callback)
  • TrackPopupMenu(menuType, nFlags, nX, nY, callback)
  • UpdateWindow()
  • Events
  • WindowActions
  • Inherited By
  • Implements
  1. PPJ.Web.49
  2. Forms

SalForm

PPJ.Runtime.Windows.SalForm

PreviousSalDialogBoxNextSalFormClientArea

Last updated 2 years ago

Namespace: PPJ.Runtime.Windows

Assembly: PPJ.Web.49 (4.9.0.0)

Base class for Sal forms.

public class SalForm : Form, ISalForm, ISalWindow
Public Class SalForm
    Inherits Form
    Implements ISalForm, ISalWindow

Properties

CultureInfo

: Returns/Sets the culture to use for this form.

IconName

: Icon name. The image is loaded from the embedded resources.

NamedProperties

Methods

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

nType

Destroys the form.

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.

Redraws the menu bar for a given form window or top-level table window.

Enables keyboard and mouse input to a window.

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

Parameter
Type
Description

nReturn

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

Parameter
Type
Description

sWindowName

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

nFormUnits

bVertical

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

Returns an object's type.

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.

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

nTypeMask

Parameter
Type
Description

sName

nSize

nEnhancement

Parameter
Type
Description

nX

nY

Parameter
Type
Description

sText

Gets the name of an object.

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

Parameter
Type
Description

nTypeMask

Returns the handle of an object's parent window.

Parameter
Type
Description

sName

sValue

Gets the value of a named property.

Parameter
Type
Description

sName

Parameter
Type
Description

nWidth

nHeight

Parameter
Type
Description

sText

nMaxLen

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

Parameter
Type
Description

nMaxLen

Parameter
Type
Description

sText

nMaxLen

Retrieves the text of a window.

Parameter
Type
Description

nMaxLen

Gets a window's color.

Parameter
Type
Description

nColorIndex

Returns a window's current state.

Hides a window.

Causes a window to be repainted.

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

Parameter
Type
Description

tClass

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

Determines whether a window is currently visible.

Destroys an object's system timer.

Parameter
Type
Description

nIDEvent

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

Parameter
Type
Description

nXOffset

nYOffset

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

nNumPixels

bVertical

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

Parameter
Type
Description

nMsg

nMywParam

nMylParam

Invokes the print form command on the client.

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

Parameter
Type
Description

nMsg

nMywParam

nMylParam

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

Parameter
Type
Description

nMsg

nMywParam

nMylParam

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

nFlags

Sets a window's cursor.

Parameter
Type
Description

nResourceId

nType

Sets a window's cursor from a string variable.

Parameter
Type
Description

sBlob

nType

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

sFile

nType

Sets the focus to a specified window.

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

Parameter
Type
Description

sName

nSize

nEnhancement

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

Parameter
Type
Description

nX

nY

Sets the value of a named property.

Parameter
Type
Description

sName

sValue

nLength

Resizes a window.

Parameter
Type
Description

nWidth

nHeight

Displays specified text in the status bar of a top-level or MDI window.

Parameter
Type
Description

sText

Sets the text of a window.

Parameter
Type
Description

sText

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

nIDEvent

nElapseMilliSec

Sets a window's color.

Parameter
Type
Description

nColorIndex

nColor

Shows the form.

Parameter
Type
Description

parent

Shows the form as child control.

Parameter
Type
Description

parent

rect

border

Shows the form as child control.

Parameter
Type
Description

parent

rect

border

Shows the modal dialog.

Shows the modal dialog.

Parameter
Type
Description

parent

The owner of the dialog.

Shows the modal dialog.

Parameter
Type
Description

parent

The owner of the dialog.

closeHandler

Close handler. When specified, the dialog doesn't start the server-side modal state.

Shows the modal dialog asynchronously.

Parameter
Type
Description

parent

The owner of the dialog.

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

Parameter
Type
Description

bShow

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

Parameter
Type
Description

bShow

Makes a window visible.

Creates pop-up menus at runtime.

Parameter
Type
Description

sMenuName

nFlags

nX

nY

callback

Creates pop-up menus at runtime.

Parameter
Type
Description

menuType

nFlags

nX

nY

callback

Forces the update of a window.

Events

Inherited By

Name
Description

Summary description for SalDialogBox.

Top level table window implementation.

Top level form window implementation.

Top level MDI window implementation.

Base class for all RibbonBar forms.

Top level form with ribbon.

Top level MDI form with ribbon.

Dialog Box window parent of a tab frame. This class allows editing of the properties of child windows identifying their associated tab.

Form window with a tab frame. In addition to containing a built in tab frame. This class also has the smarts to manage other child windows on the form so that they can be associated with specific tabs.

Defines late bound functions in QuickTabs parent Form or Dialog Box that will be called when an event occurs in the tab control.

Specializes the generic SalQuickTabsParent class into a dialog box implementation. This class should be used when the ported code extends cQuickTabsParent directly. Using this class avoids the creation of multiple inheritance constructs.

Specializes the generic SalQuickTabsParent class into a form implementation. This class should be used when the ported code extends cQuickTabsParent directly. Using this class avoids the creation of multiple inheritance constructs.

Implements

Name
Description

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

: Returns the collection of named properties.

ReturnValue

: Dialog return value

BringWindowToTop()

Returns: .

CenterWindow()

Returns: .

ClearCursor(nType)

Returns: .

Destroy()

DestroyWindow()

Returns: .

DisableWindow()

Returns: .

DrawMenuBar()

Returns: .

EnableWindow()

Returns: .

EndDialog(nReturn)

Returns: .

FindChild(sWindowName)

Returns: .

FormUnitsToPixels(nFormUnits, bVertical)

Returns: .

GetClassName()

Returns: .

GetControlType()

Returns: .

GetDefaultButton()

Returns: .

GetFirstChild(nTypeMask)

Returns: .

GetFont(sName, nSize, nEnhancement)

Returns: .

GetLocation(nX, nY)

Returns: .

GetName(sText)

Returns: .

GetName()

Returns: .

GetNextChild(nTypeMask)

Returns: .

GetParent()

Returns: .

GetProperty(sName, sValue)

Returns: .

GetProperty(sName)

Returns: .

GetSize(nWidth, nHeight)

Returns: .

GetStatusBarText(sText, nMaxLen)

Returns: .

GetStatusBarText(nMaxLen)

Returns: .

GetText(sText, nMaxLen)

Returns: .

GetText(nMaxLen)

Returns: .

GetWindowColor(nColorIndex)

Returns: .

GetWindowState()

Returns: .

HideWindow()

Returns: .

InvalidateWindow()

Returns: .

IsDerivedFromClass(tClass)

Returns: .

IsEnabled()

Returns: .

IsVisible()

Returns: .

KillTimer(nIDEvent)

Returns: .

MoveWindow(nXOffset, nYOffset)

Returns: .

PixelsToFormUnits(nNumPixels, bVertical)

Returns: .

PostMessage(nMsg, nMywParam, nMylParam)

Returns: .

Print()

SendMessage(nMsg, nMywParam, nMylParam)

Returns: .

SendMessageToChildren(nMsg, nMywParam, nMylParam)

Returns: .

SetContextMenu(sMenuName, nFlags)

Returns: .

SetContextMenu(menuType, nFlags)

Returns: .

SetCursor(nResourceId, nType)

Returns: .

SetCursor(sBlob, nType)

Returns: .

SetCursorFile(sFile, nType)

Returns: .

SetFocus()

Returns: .

SetFont(sName, nSize, nEnhancement)

Returns: .

SetLocation(nX, nY)

Returns: .

SetProperty(sName, sValue, nLength)

Returns: .

SetSize(nWidth, nHeight)

Returns: .

SetStatusBarText(sText)

Returns: .

SetText(sText)

Returns: .

SetTimer(nIDEvent, nElapseMilliSec)

Returns: .

SetWindowColor(nColorIndex, nColor)

Returns: .

Show(parent)

ShowAsChild(parent, rect, border)

ShowAsChild(parent, rect, border)

ShowDialog()

Returns: . Return value set by or .

ShowDialog(parent)

Returns: . Return value set by or .

ShowDialog(parent, closeHandler)

Returns: . Return value set by or .

ShowDialogAsync(parent)

Returns: . Return value set by or .

ShowStatusBar(bShow)

Returns: .

ShowToolBar(bShow)

Returns: .

ShowWindow()

Returns: .

TrackPopupMenu(sMenuName, nFlags, nX, nY, callback)

Returns: .

TrackPopupMenu(menuType, nFlags, nX, nY, callback)

Returns: .

UpdateWindow()

Returns: .

WindowActions

SalNamedProperties
Int32
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalWindowHandle
SalNumber
SalString
SalNumber
SalWindowHandle
SalWindowHandle
SalBoolean
SalBoolean
SalBoolean
SalString
SalWindowHandle
SalWindowHandle
SalBoolean
SalString
SalBoolean
SalNumber
SalString
SalNumber
SalString
SalNumber
SalNumber
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalNumber
SalBoolean
SalNumber
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalWindowHandle
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
Int32
EndDialog
EndDialog
Int32
EndDialog
EndDialog
Int32
EndDialog
EndDialog
Task<Int32>
EndDialog
EndDialog
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
WindowActionsEventHandler
SalNumber
SalNumber
SalString
SalNumber
SalBoolean
SalNumber
SalString&
SalNumber&
SalNumber&
SalNumber&
SalNumber&
SalString&
SalNumber
SalString
SalString&
SalString
SalNumber&
SalNumber&
SalString&
SalNumber
SalNumber
SalString&
SalNumber
SalNumber
SalNumber
Type
SalNumber
SalNumber
SalNumber
SalNumber
SalBoolean
SalNumber
SalNumber
SalNumber
SalNumber
SalNumber
SalNumber
SalNumber
SalNumber
SalNumber
SalString
SalNumber
Type
SalNumber
Int32
SalNumber
SalString
SalNumber
SalString
SalNumber
SalString
SalNumber
SalNumber
SalNumber
SalNumber
SalString
SalString
SalNumber
SalNumber
SalNumber
SalString
SalString
SalNumber
SalNumber
SalNumber
SalNumber
Control
Control
RectangleF
Boolean
Control
Rectangle
Boolean
Control
Control
Action<Int32>
Control
SalBoolean
SalBoolean
SalString
SalNumber
SalNumber
SalNumber
Action<ContextMenu>
Type
SalNumber
SalNumber
SalNumber
Action<ContextMenu>
SalDialogBox
SalFormTableWindow
SalFormWindow
SalMDIWindow
SalRibbonBarBase
SalRibbonBarForm
SalRibbonBarMDI
SalQuickTabsDialog
SalQuickTabsForm
SalQuickTabsParent
SalQuickTabsParentDialog
SalQuickTabsParentForm
VisSplitterWindow
XSalToolbox
ISalWindow
Control
ScrollableControl
ContainerControl
Form
SalForm
CultureInfo
String