Consultor Eletrônico



Kbase P121847: The SET-RGB-VALUE method of the COLOR-TABLE handle fails with error 4078
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   23/07/2009
Status: Unverified

SYMPTOM(s):

The SET-RGB-VALUE method of the COLOR-TABLE handle fails

**Unable to set attribute <attribute> for <widget id>. (4078)

**Unable to set attribute SET-RGB-VALUE for PSEUDO-WIDGET. (4078)

FACT(s) (Environment):

Windows
Progress 9.x
OpenEdge 10.x
OpenEdge Category: Language (4GL/ABL)

CAUSE:

The color number that the SET-RGB-VALUE method tried to change was a static color

FIX:

Change the application code and make the entry in the color table that needs to be changed dynamic. Sample code showing how to do this is shown below:

COLOR-TABLE:NUM-ENTRIES = 50.
COLOR-TABLE:SET-DYNAMIC(22,TRUE). /* Allow Changes to Color 22 */
COLOR-TABLE:SET-RGB-VALUE(22,RGB-VALUE(251,203,57)).