Thank's guy's I solved the problem , u were very helpfull, I m also looking for another thing , I would like to make a field in a form/screen blinking , don't realy know if it's posible.
As I recall, once I used a color scheme for blinking red:
Somewhere in SETUP-code (R for red):
set color of scheme 22 to R/W,R/W,R/W,R/W,R/W,R/W,R/W,R/W,R/W,R/W
Somewhere in CLEANUP-code define a function (* for blink):
procedure kolorit
parameter blinkx
if blinkx
set color of scheme 22 to
R*/W,R*/W,R*/W,R*/W,R*/W,R*/W,R*/W,R*/W,R*/W,R*/W
else
set color of scheme 22 to
N/W,N/W,N/W,N/W,N/W,N/W,N/W,N/W,N/W,N/W
endif
return 22
And I used it conditionaly when defining a field:
@ 19,1 GET m.totrazx ;
SIZE 1,11 ;
DEFAULT 0 ;
PICTURE "99999999.99" ;
WHEN .f. ;
COLOR scheme iif(totrazx=0.00,kolorit(.f.),kolorit(.t.)) ;
DISABLE
P.S.
I used modified GENSCRNX to be able to have COLOR SCHEME clause when defining field on screen. Maybe it is not your case, but this hint can show you the direction.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.