PPJ Desktop API
HomeCurrent IssuesDownloads
  • Welcome
  • Concepts
  • PPJ.Runtime.49
    • General
      • Sal
      • Sys
      • SalApplication
      • SalNamedProperties
      • SalWindow
      • WindowActionsEventArgs
      • SalXML
    • COM
      • SalCoClass
      • SalObject
      • SalOleErrorInfo
      • SalSafeArray
      • SalVariant
    • Controls
      • SalActiveX
      • SalBackgroundText
      • SalCheckBox
      • SalComboBox
      • SalContext
      • SalCustomControl
      • SalDataField
        • DataType
      • SalFrame
        • BorderStyle
      • SalGeneralWindow
      • SalGroupBox
      • SalGroupSeparator
      • SalHorizontalScrollBar
      • SalLine
        • LineStyle
        • LineType
      • SalListBox
      • SalMultilineField
      • SalNavigationBar
      • SalOptionButton
        • OptionButtonStyle
      • SalPicture
        • ImageStorage
      • SalPushbutton
      • SalRadioButton
      • SalTableWindow
        • CellType
        • FocusRowStyle
        • RowsSizingStyle
        • SalTableColumn
        • SalTableColumnCollection
        • SalTableRow
        • SalTableRowCollection
        • SalTableWindowBase
      • SalTreeControl
        • SalTreeItem
      • SalUserControl
      • SalVerticalScrollBar
    • Forms
      • AccessoryType
      • SalDialogBox
      • SalForm
      • SalFormClientArea
      • SalFormStatusBar
      • SalFormTableWindow
      • SalFormToolBar
      • SalFormWindow
      • SalMDIWindow
      • SalRibbonBarBase
      • SalRibbonBarForm
      • SalRibbonBarMDI
      • SalRibbonStatusBar
    • Interfaces
      • ISalControl
      • ISalEditControl
      • ISalListControl
      • ISalPictureControl
      • ISalRadioButton
      • ISalReport
      • ISalType
      • ISalAccessory
      • ISalMenu
      • ISalWindow
    • Internet
      • FtpEventArgs
      • FtpEventHandler
      • HttpEventArgs
      • HttpEventHandler
      • SalFtpClient
      • SalHttpClient
      • SalQuickFTP
      • SalQuickHTTP
    • Menus
      • SalContextMenu
      • SalFormMainMenu
      • SalMenuColumn
      • SalMenuItem
      • SalMenuRow
      • SalMenuSeparator
      • SalPopupMenu
      • SalWindowsMenu
    • QO
      • QO
      • SalQuickHTML
      • SalQuickTabs
      • SalQuickTabsDialog
      • SalQuickTabsForm
      • SalQuickTabsParent
      • SalQuickTabsParentDialog
      • SalQuickTabsParentForm
      • SalQuickToolTipCheckBox
      • SalQuickToolTipChildTable
      • SalQuickToolTipComboBox
      • SalQuickToolTipDataField
      • SalQuickToolTipHScrollBar
      • SalQuickToolTipListBox
      • SalQuickToolTipMultilineField
      • SalQuickToolTipOptionButton
      • SalQuickToolTipPicture
      • SalQuickToolTipPushButton
      • SalQuickToolTipRadioButton
      • SalQuickToolTipTableWindow
      • SalQuickToolTipVScrollBar
      • SalToolTipManager
    • Sql
      • SalSqlBindVariables
      • SalSqlError
      • SalSqlHandle
      • SalSqlSessionHandle
      • Sql
      • SqlContext
      • SqlOra
      • WhenSqlError
    • Types
      • SalArray
      • SalArray<T>
      • SalBinary
      • SalBoolean
      • SalDateTime
      • SalFileHandle
      • SalFunctionalClass
      • SalNumber
      • SalResource
      • SalString
      • SalStringContext
      • SalWindowHandle
  • PPJ.Runtime.DDE.49
    • General
      • SalDDE
  • PPJ.Runtime.Vis.49
    • General
      • Vis
      • VisTblEx
    • Controls
      • VisCalendar
      • VisCalendarDropDown
      • VisColorComboBox
      • VisColorListBox
      • VisColorPalette
      • VisColorPaletteBase
      • VisColorPaletteDropDown
      • VisComboBoxBase
      • VisDesktopListBox
      • VisDirListBox
      • VisDirTreeListBox
      • VisDriveListBox
      • VisDropDownBase
      • VisFileListBox
      • VisFontComboBox
      • VisFontListBox
      • VisFontNameComboBox
      • VisFontNameListBox
      • VisListBoxBase
      • VisListBoxExtension
      • VisListView
      • VisListViewDropDown
      • VisMeter
      • VisOutlineComboBox
      • VisOutlineListBox
      • VisPictureComboBox
      • VisPictureListBox
      • VisPoint
      • VisRadioListBox
      • VisRect
      • VisRichEdit
      • VisSize
      • VisSpinField
      • VisSplitter
      • VisSplitterWindow
        • Orientation
  • PPJ.Runtime.XSal.49
    • General
      • XSal
      • XSalScript
    • Controls
      • XSalFlatButton
      • XSalHSplitter
      • XSalSeparator
      • XSalSeparatorDoubleRaised
      • XSalSeparatorEtched
      • XSalSeparatorInvisible
      • XSalSeparatorSingleRaised
      • XSalSplitter
      • XSalToolbar
      • XSalToolbox
      • XSalVSplitter
Powered by GitBook
On this page
  • Constructors
  • SalPicture()
  • Properties
  • Image
  • ImageName
  • ImageStorage
  • Label
  • NamedProperties
  • ScaleHeight
  • ScaleWidth
  • TransparentColor
  • Methods
  • BringWindowToTop()
  • CenterWindow()
  • Clear()
  • ClearCursor(type)
  • ClearImage()
  • DestroyWindow()
  • DisableWindow()
  • DisableWindowAndLabel()
  • EnableWindow()
  • EnableWindowAndLabel()
  • FindChild(windowName)
  • FireWindowActions(msg, mywParam, mylParam)
  • FormUnitsToPixels(formUnits, vertical)
  • GetClassName()
  • GetControlType()
  • GetDataType()
  • GetFirstChild(nTypeMask)
  • GetFont(name, size, enhancement)
  • GetImageBytes(sImageBytes, nType)
  • GetImageDescription(sDesc, nMaxLen)
  • GetImageDescription(nMaxLen)
  • GetImageFromBlob(blob, imageType)
  • GetImageString(nFormat, sPict)
  • GetImageString(nFormat)
  • GetLabel()
  • GetLabelText(sText, nMaxLength)
  • GetLabelText(nMaxLength)
  • GetLocation(x, y)
  • GetName(sText)
  • GetName()
  • GetNextChild(typeMask)
  • GetParent()
  • GetProperty(name, value)
  • GetProperty(name)
  • GetSize(width, height)
  • GetText(text, maxLen)
  • GetText(maxLen)
  • GetWindowColor(colorIndex)
  • GetWindowState()
  • HideWindow()
  • HideWindowAndLabel()
  • InvalidateWindow()
  • IsDerivedFromClass(typeClass)
  • IsEnabled()
  • IsModified()
  • IsVisible()
  • KillTimer(idEvent)
  • MoveWindow(xOffset, yOffset)
  • PixelsToFormUnits(numPixels, vertical)
  • PostMessage(msg, mywParam, mylParam)
  • SendMessage(msg, mywParam, mylParam)
  • SendMessageToChildren(msg, mywParam, mylParam)
  • SetContextMenu(sMenuName, nFlags)
  • SetContextMenu(menuType, flags)
  • SetCursor(resource, type)
  • SetCursor(resourceId, type)
  • SetCursor(blob, type)
  • SetCursorFile(file, type)
  • SetFocus()
  • SetFont(name, size, enhancement)
  • SetImageBytes(sImageBytes, nType)
  • SetImageFile(sFileName)
  • SetImageFit(nFit, nScaleWidth, nScaleHeight)
  • SetImageHandle(nType, nHandle)
  • SetImageResource(tResource, nFormat)
  • SetImageString(nFormat, sPicture)
  • SetLabelText(sText)
  • SetLocation(x, y)
  • SetModified(bSet)
  • SetProperty(name, value, length)
  • SetSize(width, height)
  • SetText(text)
  • SetTimer(idEvent, elapseMilliSec)
  • SetWindowColor(colorIndex, color)
  • ShowWindow()
  • ShowWindowAndLabel()
  • TrackPopupMenu(menuName, flags, x, y)
  • TrackPopupMenu(menuType, flags, x, y)
  • UpdateWindow()
  • WinHelp(file, command, numData, strData)
  • Yield()
  • Events
  • MessageActions
  • WindowActions
  • Inherited By
  • Implements
  1. PPJ.Runtime.49
  2. Controls

SalPicture

PPJ.Runtime.Windows.SalPicture

PreviousOptionButtonStyleNextImageStorage

Last updated 2 years ago

Namespace: PPJ.Runtime.Windows

Assembly: PPJ.Runtime.49 (4.9.0.0)

Picture implementation.

public class SalPicture : PictureBox, ISalWindow, ISalPictureControl, ISalControl
Public Class SalPicture
    Inherits PictureBox
    Implements ISalWindow, ISalPictureControl, ISalControl

Constructors

SalPicture()

Constructs a SalPicture object.

Properties

Image

: Overrides the default Image property.

ImageName

: Image name. Name of the image to load from the embedded resources. (Default: "")

ImageStorage

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 the value from a data field, multi line field, or table window column.

Clears a window's cursor.

Parameter
Type
Description

type

Deletes the contents of a picture.

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.

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.

Enables keyboard and mouse input to a window.

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.

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

Parameter
Type
Description

windowName

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

Parameter
Type
Description

msg

mywParam

mylParam

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

formUnits

The number of form units.

vertical

If the form units are on the X axis, set this parameter to FALSE. If the form units are on the Y axis, set this parameter to TRUE.

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

Returns an object's type.

Returns a data field's or table window column's data type.

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

name

size

enhancement

Parameter
Type
Description

sImageBytes

nType

Parameter
Type
Description

sDesc

nMaxLen

Retrieves a description of a picture's contents.

Parameter
Type
Description

nMaxLen

Converts the blob to an image.

Parameter
Type
Description

blob

imageType

Parameter
Type
Description

nFormat

sPict

Return the contents of a picture into a string.

Parameter
Type
Description

nFormat

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.

Parameter
Type
Description

sText

nMaxLength

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.

Parameter
Type
Description

nMaxLength

Parameter
Type
Description

x

y

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

typeMask

One or more window types combined (using the OR (|) operator) to create a mask of child window types.

Returns the handle of an object's parent window.

Parameter
Type
Description

name

value

Gets the value of a named property.

Parameter
Type
Description

name

Parameter
Type
Description

width

height

Parameter
Type
Description

text

maxLen

Retrieves the text of a window.

Parameter
Type
Description

maxLen

Gets a window's color.

Parameter
Type
Description

colorIndex

Returns a window's current state.

Hides a window.

Hides a window and its associated label.

Causes a window to be repainted.

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

Parameter
Type
Description

typeClass

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

Returns the setting of the Field Edit Flag for a data field, multi line field, combo box, table window's context row cell, or picture.

Determines whether a window is currently visible.

Destroys an object's system timer.

Parameter
Type
Description

idEvent

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

Parameter
Type
Description

xOffset

yOffset

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

numPixels

vertical

If the form units are on the X axis, set this parameter to FALSE. If the form units are on the Y axis, set this parameter to TRUE.

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

Parameter
Type
Description

msg

mywParam

mylParam

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

Parameter
Type
Description

msg

mywParam

mylParam

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

Parameter
Type
Description

msg

mywParam

mylParam

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

flags

Sets a window's cursor.

Parameter
Type
Description

resource

type

Sets a window's cursor.

Parameter
Type
Description

resourceId

type

Sets a window's cursor from a string variable.

Parameter
Type
Description

blob

type

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

file

type

Sets the focus to a specified window.

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

Parameter
Type
Description

name

size

enhancement

Inserts the contents of a picture to an image without the image header.

Parameter
Type
Description

sImageBytes

nType

Inserts a file's contents into a picture.

Parameter
Type
Description

sFileName

Sets the fit for a picture.

Parameter
Type
Description

nFit

nScaleWidth

nScaleHeight

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.

Parameter
Type
Description

nType

nHandle

Inserts a resource into a picture.

Parameter
Type
Description

tResource

nFormat

Inserts the contents of a string into a picture.

Parameter
Type
Description

nFormat

sPicture

Sets the text of the associated label control.

Parameter
Type
Description

sText

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

Parameter
Type
Description

x

y

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

Parameter
Type
Description

bSet

Sets the value of a named property.

Parameter
Type
Description

name

value

length

Resizes a window.

Parameter
Type
Description

width

height

Sets the text of a window.

Parameter
Type
Description

text

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

idEvent

elapseMilliSec

Sets a window's color.

Parameter
Type
Description

colorIndex

color

Makes a window visible.

Makes a window and its associated label visible. A label is the label control that immediately precedes the window in the outline.

Creates pop-up menus at runtime.

Parameter
Type
Description

menuName

flags

x

y

Creates pop-up menus at runtime.

Parameter
Type
Description

menuType

flags

x

y

Forces the update of a window.

Starts the Windows help system.

Parameter
Type
Description

file

command

numData

strData

Processes messages for this control.

Events

Inherited By

Name
Description

Picture with tool tip support

Implements

Name
Description

All SAL controls implement this interface.

SAL Controls that display a picture implement this interface.

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

: SalPicture storage.

Label

: Returns/Sets the label associated with this control.

NamedProperties

: Returns the collection of named properties.

ScaleHeight

: Returns/Sets the vertical scaling value. (Default: 100)

ScaleWidth

: Returns/Sets the horizontal scaling value. (Default: 100)

TransparentColor

: Transparent color.

BringWindowToTop()

Returns: .

CenterWindow()

Returns: .

Clear()

Returns: .

ClearCursor(type)

Returns: .

ClearImage()

Returns: .

DestroyWindow()

Returns: .

DisableWindow()

Returns: .

DisableWindowAndLabel()

Returns: .

EnableWindow()

Returns: .

EnableWindowAndLabel()

Returns: .

FindChild(windowName)

Returns: .

FireWindowActions(msg, mywParam, mylParam)

Returns: .

FormUnitsToPixels(formUnits, vertical)

Returns: .

GetClassName()

Returns: .

GetControlType()

Returns: .

GetDataType()

Returns: .

GetFirstChild(nTypeMask)

Returns: .

GetFont(name, size, enhancement)

Returns: .

GetImageBytes(sImageBytes, nType)

Returns: .

GetImageDescription(sDesc, nMaxLen)

Returns: .

GetImageDescription(nMaxLen)

Returns: .

GetImageFromBlob(blob, imageType)

Returns: .

GetImageString(nFormat, sPict)

Returns: .

GetImageString(nFormat)

Returns: .

GetLabel()

Returns: .

GetLabelText(sText, nMaxLength)

Returns: .

GetLabelText(nMaxLength)

Returns: .

GetLocation(x, y)

Returns: .

GetName(sText)

Returns: .

GetName()

Returns: .

GetNextChild(typeMask)

Returns: .

GetParent()

Returns: .

GetProperty(name, value)

Returns: .

GetProperty(name)

Returns: .

GetSize(width, height)

Returns: .

GetText(text, maxLen)

Returns: .

GetText(maxLen)

Returns: .

GetWindowColor(colorIndex)

Returns: .

GetWindowState()

Returns: .

HideWindow()

Returns: .

HideWindowAndLabel()

Returns: .

InvalidateWindow()

Returns: .

IsDerivedFromClass(typeClass)

Returns: .

IsEnabled()

Returns: .

IsModified()

Returns: .

IsVisible()

Returns: .

KillTimer(idEvent)

Returns: .

MoveWindow(xOffset, yOffset)

Returns: .

PixelsToFormUnits(numPixels, vertical)

Returns: .

PostMessage(msg, mywParam, mylParam)

Returns: .

SendMessage(msg, mywParam, mylParam)

Returns: .

SendMessageToChildren(msg, mywParam, mylParam)

Returns: .

SetContextMenu(sMenuName, nFlags)

Returns: .

SetContextMenu(menuType, flags)

Returns: .

SetCursor(resource, type)

Returns: .

SetCursor(resourceId, type)

Returns: .

SetCursor(blob, type)

Returns: .

SetCursorFile(file, type)

Returns: .

SetFocus()

Returns: .

SetFont(name, size, enhancement)

Returns: .

SetImageBytes(sImageBytes, nType)

Returns: .

SetImageFile(sFileName)

Returns: .

SetImageFit(nFit, nScaleWidth, nScaleHeight)

Returns: .

SetImageHandle(nType, nHandle)

Returns: .

SetImageResource(tResource, nFormat)

Returns: .

SetImageString(nFormat, sPicture)

Returns: .

SetLabelText(sText)

Returns: .

SetLocation(x, y)

Returns: .

SetModified(bSet)

Returns: .

SetProperty(name, value, length)

Returns: .

SetSize(width, height)

Returns: .

SetText(text)

Returns: .

SetTimer(idEvent, elapseMilliSec)

Returns: .

SetWindowColor(colorIndex, color)

Returns: .

ShowWindow()

Returns: .

ShowWindowAndLabel()

Returns: .

TrackPopupMenu(menuName, flags, x, y)

Returns: .

TrackPopupMenu(menuType, flags, x, y)

Returns: .

UpdateWindow()

Returns: .

WinHelp(file, command, numData, strData)

Returns: .

Yield()

MessageActions

Message Actions

WindowActions

Window Actions

ImageStorage
Control
SalNamedProperties
Int32
Int32
Color
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalWindowHandle
SalNumber
SalNumber
SalString
SalNumber
SalNumber
SalWindowHandle
SalBoolean
SalNumber
SalNumber
SalString
Image
SalNumber
SalString
SalWindowHandle
SalNumber
SalString
SalBoolean
SalBoolean
SalString
SalWindowHandle
SalWindowHandle
SalBoolean
SalString
SalBoolean
SalNumber
SalString
SalNumber
SalNumber
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalNumber
SalBoolean
SalNumber
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalWindowHandle
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalMessageHandler
WindowActionsEventHandler
SalNumber
SalString
SalNumber
SalNumber
SalNumber
SalNumber
SalBoolean
SalNumber
SalString&
SalNumber&
SalNumber&
SalString&
SalNumber&
SalString&
SalNumber
SalNumber
Byte[]
Int32
SalNumber
SalString&
SalNumber
SalString&
SalNumber
SalNumber
SalNumber&
SalNumber&
SalString&
SalNumber
SalString
SalString&
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
SalResourceCursor
SalNumber
Int32
SalNumber
SalString
SalNumber
SalString
SalNumber
SalString
SalNumber
SalNumber
SalString
SalNumber
SalString
SalNumber
SalNumber
SalNumber
SalNumber
SalNumber
SalResource
SalNumber
SalNumber
SalString
SalString
SalNumber
SalNumber
SalBoolean
SalString
SalString
SalNumber
SalNumber
SalNumber
SalString
SalNumber
SalNumber
SalNumber
SalNumber
SalString
SalNumber
SalNumber
SalNumber
Type
SalNumber
SalNumber
SalNumber
SalString
SalNumber
SalNumber
SalString
SalQuickToolTipPicture
ISalControl
ISalPictureControl
ISalWindow
Image
String