PPJ Manual
HomeCurrent IssuesDownloads
  • Welcome
  • Releases
    • PPJ 2023
  • PPJ 2023
  • PPJ Web API
  • PPJ Desktop API
  • Wisej.NET Documentation
  • General
    • Framework
      • Features
        • SAL and SQL Functions
        • Constants and Variables
        • SalContext
        • Visual Toolchest
        • XSal2
        • Reporting Support
        • LINQ Support
        • SalCompileAndEvaluate
        • Unicode Support
        • Startup Arguments
        • App.config
      • Data Types
        • Automatic Casts
        • Dynamic Arrays
      • Controls
        • ToolBar
        • TabControl
        • TableWindow
        • QuickObject
        • Ribbon Bar
        • NavigationBar
      • SQL Support
        • Configuration
        • ADO.NET Drivers
        • Bind and Into Variables
        • DBP Parameters
        • SqlContext
      • Extensions
        • Table Window
        • Unicode Support
        • Bug Fixes
        • Object Oriented Types
        • Custom Parsers
        • Named Properties
        • Microsoft Charts
        • Tabbed MDI
        • Watermark
        • HTML Rendering
      • Skins and Themes
        • Skin Files
        • Theme Files
        • Configuration
        • Skin Editor
        • Theme Builder
      • Tracing
        • Trace Viewer
        • Default Listeners
        • Tracing the Application
      • Spell Checker
        • Dictionaries
    • Ported Application
      • Project Structure
        • Late Bind Calls
        • Visual Styles
        • Unqualified References
        • Message Actions
        • When SQLError
        • Classes
      • Global Items
      • Forms
      • COM/ActiveX
      • Multiple Inheritance
      • Configuration Tool
      • Issues & Workarounds
    • Ported Reports
      • General
      • Crystal Reports
        • Structure
        • Unsupported Features
      • List & Label
        • Report Conversion
        • Structure
        • Document
        • Input Items
        • Passing Data
        • Unsupported Features
      • Reporting Services
        • Features
      • Stimulsoft
        • Break Groups
        • Fields
        • Formulas
        • Cache Mode
Powered by GitBook
On this page

Was this helpful?

  1. General
  2. Framework
  3. Features

Constants and Variables

PreviousSAL and SQL FunctionsNextSalContext

Last updated 2 years ago

Was this helpful?

All SAL system constants and system variables are defined in PPJ.Runtime.Sys class as constants or static variables. The names are all unchanged. Ice Porter takes care of qualifying the names with the Sys class name.

The most used system variables in SAL are hWndForm, hWndItem and hWndMDI. All of them are supported in the Sys class and are updated automatically using a stacked context system. See for more information.

The only system variable that is not supported is bStaticsAsWindows because all the so-called "static" controls in SAL are normal controls in .NET.

All constants are defined and therefore available to the ported application as constants. However, some constants may not be supported by the function that uses them. Most of the times, the constants that are not supported are either not needed or obsolete. The unsupported constants are all marked with the [Obsolete] attribute and are reported as such by the C# compiler.

Unsupported constants

In the table below, you can find the list of all unsupported constants and the reason why they are unsupported, plus, if available, the suggested workaround.

Constant
Description

OF_Reopen

SalFileOpenEx is not supported. There is no replacement and in general this function and this constant is not needed.

TBL_Flag_HScrollByCols

Not supported in the FlexGrid.NET and in general it's not needed.

TBL_Flag_ShowVScroll

Not supported in the FlexGrid.NET and in general it's not needed.

TBL_Flag_ShowWaitCursor

Not needed.

TPM_CenterAlign

System constants for context menus not exposed by the .NET framework. In general it is not needed and not used in Windows standard GUI design guidelines.

TPM_RightAlign

System constants for context menus not exposed by the .NET framework. In general it is not needed and not used in Windows standard GUI design guidelines.

TPM_RightButton

System constants for context menus not exposed by the .NET framework. In general it is not needed and not used in Windows standard GUI design guidelines.

SalContext