Set Colors

Visual LANSA

Set Colors

Color attributes can be specified in three ways:

  • Standard color names such as 'Red' or 'Blue'
  • As mappings to Windows system colors, such as WindowText. Many of the system colors are set using the Appearance tab of the Display object in the Control panel.
  • Entering an RGB value in the format RRR:GGG:BBB. For example in VS_Norm style the error background color in the Value item is specified as 255:96:160 (pink).

Note also that the styles shipped with LANSA deliberately avoid using hardcoded standard colors and instead use the system colors of Windows objects. In this way the Windows settings of a workstation are used in the application. Often this is the best approach because LANSA visual styles do not control the color of all Window objects (such as title bars, scroll bars etc.) and therefore it is hard to be sure that a hardcoded color would suit the chosen Windows color scheme on every workstation.

Ý 6.29.3 Visual Styles