There are several ways to do this. Perhaps one of the easiest is to use a 
different attribute for the field, like this:

)ATTR
   $   TYPE(TEXT) COLOR(&BYCOLOR)

)BODY
¬Pg.&pge¬Prefix=&prf     ¬&lmax    
¬CPU=&c10         $&by        ¬&timr


In the program, simply set &BYCOLOR to whatever color you want before 
displaying the panel.

HTH,
 
Dave Salt

SimpList(tm) - try it; you'll get it! 

http://www.mackinney.com/products/program-development/simplist.html  






> Date: Mon, 12 Jul 2010 11:26:27 -0400
> From: [email protected]
> Subject: dyanamically changing color of ISPF panel fields
> To: [email protected]
> 
> We are trying to find a way to dynamically change the color of a field before 
> displaying an ISPF panel.
> Would anyone know how to do this.
> 
>                Thanks list
> Part of panel
> 
> )BODY
> ¬Pg.&pge¬Prefix=&prf     ¬&lmax    ¬CPU=&c10         ¬&by        ¬&timr
> 
> 
> 
> 
> 
> If I want to Change color of   &by     before:
> 
>   "ISPEXEC DISPLAY PANEL(sg1p2)"
> 
> 
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to [email protected] with the message: GET IBM-MAIN INFO
> Search the archives at http://bama.ua.edu/archives/ibm-main.html
                                          
_________________________________________________________________
Turn down-time into play-time with Messenger games
http://go.microsoft.com/?linkid=9734385
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to