Kbase 20939: How to Change the Colors of a Label (text and/or background)
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  10/16/2008 |
|
Status: Unverified
GOAL:
How you can modify the color attributes of a label for a fill-in widget.
FIX:
Follow these steps to modify color attributes:
1) Create a new window.
2) Place a fill-in on this window (to be refered to as fill-in 1).
3) Define a variable as a handle in the definitions section:
DEFINE VARIABLE sidehandle AS HANDLE NO-UNDO.
4) Open the Procedure section.
5) Select New.
6) Choose type Local ADM event.
7) Select Source: ADM-initalize.
8) Enter the following code before End Procedure:
ASSIGN sidehandle = FILL-IN-1:SIDE-LABEL-HANDLE IN FRAME {&FRAME-NAME}
sidehandle:FGCOLOR = 5.
NOTE: If you want to set the background of the label, use BGCOLOR.