PxPlus User Forum

Main Board => Knowledge Base / Training => FAQs => Topic started by: PxPlus on July 20, 2018, 10:43:37 AM

Title: How to change color used when printing 'SB' on Windows
Post by: PxPlus on July 20, 2018, 10:43:37 AM
Over the last few years Windows has changed the brightness of the gray color it uses on buttons and windows.  By default, the Windows gray colors are used by PxPlus to define the Light and Dark gray colors so that windows and controls created in PxPlus match the colors used by Windows.  These gray colors are also used by the system when displaying Black or White text with the 'SB' (Set Background) mnemonic enabled -- Dark gray for Black text, Light gray for White text.

Unfortunately in recent years these colors have become paler than they used to be making Light gray (#15) almost pure white which causes a problem when displaying white text with the 'SB' mnemonic.  This is especially problematic if you are running text mode applications and have changed the display to use a black background with white text.

There are two solutions to address this situation:

Once the colors have been changed you need for Windows to refresh your page otherwise you will only get the new color on areas on the screen that are being updated.

NOTE: This FAQ is for use with Windows and not normal terminals which will use the escape sequence in the *dev driver programs.