Consultor Eletrônico



Kbase P24579: How to change default color for GUI client on windows?
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   2/17/2004
Status: Unverified

GOAL:

How to change the default window color for a GUI client?

FACT(s) (Environment):

Windows

FIX:

The windows background color can be set to display the desired color. The example below illustrates setting the windows BGCOLOR = 16. The number 16 represents a color designated by the developer in the Progress.ini file. The first 16 colors are reserved and are private to the Progress ADE and should not be modified. Aditional colors can be added in sequence following color15 as shown below.

color0=0,0,0
color1=0,0,128
color2=0,128,0
color3=0,128,128
color4=128,0,0
color5=128,0,128
color6=128,128,0
color7=128,128,128
color8=192,192,192
color9=0,0,255
color10=0,255,0
color11=0,255,255
color12=255,0,0
color13=255,0,255
color14=255,255,0
color15=255,255,255
color16=255,102,102 /* represents the color red and will be used to set the
background color of the window */
color17=etc..............

CREATE WINDOW C-Win ASSIGN
HIDDEN = YES
TITLE = "Test"
HEIGHT = 16
WIDTH = 80
MAX-HEIGHT = 16
MAX-WIDTH = 80
VIRTUAL-HEIGHT = 16
VIRTUAL-WIDTH = 80
RESIZE = yes
SCROLL-BARS = no
STATUS-AREA = no
BGCOLOR = 16 /* This is where the BGCOLOR attribute is set */
FGCOLOR = ?
KEEP-FRAME-Z-ORDER = yes
THREE-D = yes
MESSAGE-AREA = no
SENSITIVE = YES.