Consultor Eletrônico



Kbase P87835: How to change the BGCOLOR property for every FILL-IN in an application when a specific event occurs
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   10/16/2008
Status: Unverified

GOAL:

How to change the BGCOLOR property for every FILL-IN in an application when a specific event occurs ?

GOAL:

How to change a property for every object in an application when a event occurs ?

FIX:

Add code below to the end of the Main Block Section and add 2 fill-in's objects to the Window:

ON 'entry':U ANYWHERE
DO:
IF SELF:NAME BEGINS "Fill" THEN
SELF:BGCOLOR = 8.
END.
ON 'leave':U ANYWHERE
DO:
IF SELF:NAME BEGINS "Fill" THEN
SELF:BGCOLOR = 0.
END.