Consultor Eletrônico



Kbase P7101: Frame shows the foreground and background colors associated with a display statement before the stat
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   03/02/2009
Status: Verified

SYMPTOM(s):

Frame shows the foreground and background colors associated with a display statement before the statement executes

FACT(s) (Environment):

All Supported Operating Systems
Progress 8.x
Progress 9.x
OpenEdge Category: Language (4GL/ABL)
OpenEdge 10.x

CAUSE:

This is a side effect of how frames are compiled. All statements that refer to a frame can contribute to the compile-time layout of the frame. In this case, the FGCOLOR and BGCOLOR phrases of the DISPLAY statement get compiled into the frame layout definition.

FIX:

Use a widget in the frame rather than the DISPLAY statement and set the widgets FGCOLOR and BGCOLOR attributes dynamically at runtime.