Constants and Variables
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 SalContext 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.
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.
Last updated