|
|
Clarion Language and Runtime Library
Started by Jax at 06-19-2008 2:29 AM. Topic has 6 replies.
 
 
|
|
Sort Posts:
|
|
|
|
06-19-2008, 2:29 AM
|
Jax
Joined on 06-19-2008
Posts 3
|
|
|
I am trying to highlight a record in the detail section in a Clarion report , is there any way to change the color on a single record with a condition.
|
|
|
|
|
Report
|
|
|
|
06-19-2008, 6:00 AM
|
Russ
Joined on 10-20-2005
Posts 223
|
|
|
http://www.clarionmag.com/cmag/v10/v10n05reportcolors2.html (sub req)
Russ Eggen www.radfusion.com
|
|
|
|
|
Report
|
|
|
|
06-19-2008, 2:58 PM
|
Shankar
Joined on 10-24-2005
Dubai, UAE
Posts 219
|
|
|
Hi!
Two ways of doing it ::
- have a BOX control and use PROP:Fill to set/reset the color
- have an image as the background and set it the corresponding wallpaper image
Regards
Shankar
|
|
|
|
|
Report
|
|
|
|
06-30-2008, 6:18 AM
|
Jax
Joined on 06-19-2008
Posts 3
|
|
|
Hi
I am still not sure what you mean , I need to change the color of the background when reporting only on condition eg if 'FIELD' = 1 then , can I use PROP:Fill to set the colour and were would I use that command.
|
|
|
|
|
Report
|
|
|
|
06-30-2008, 11:32 PM
|
Shankar
Joined on 10-24-2005
Dubai, UAE
Posts 219
|
|
|
Hi!
Highlighting is done in two ways - either by a different background color (using the BOX method & PROP:Fill) or setting the color of the controls (using the PROP:Color or PROP:FillColor).
To change the background color of a BOX ::
Report$?BoxControl{PROP:Fill} = COLOR:Yellow
To change the background color of a STRING control ::
Report$?StringControl{PROP:FillColor} = COLOR:Yellow
or
Report$?StringControl{PROP:Color} = COLOR:Yellow
To change the foreground color of a STRING control ::
Report$?StringControl{PROP:FontColor} = COLOR:Red
ALL THESE SHOULD BE DONE BEFORE THE PRINT() COMMAND (In the Embeditor, click on Source, do a search for the PRINT(RPT:Detail) command and insert the code in an embed BEFORE that.
Regards
Shankar
|
|
|
|
|
Report
|
|
|
|
07-01-2008, 12:17 AM
|
Jax
Joined on 06-19-2008
Posts 3
|
|
|
Hi
Thank you so much I have been trying to do that for ages
Regards
|
|
|
|
|
Report
|
|
|
|
07-01-2008, 11:56 PM
|
Shankar
Joined on 10-24-2005
Dubai, UAE
Posts 219
|
|
|
Hi!
You are welcome.
Also, be aware that the background color will not display if the Control is set as Transperent.
Regards
Shankar
|
|
|
|
|
Report
|
|
|
|
|
Clarion Communi... » Clarion » Clarion Languag... » Re: Report Detail Color
|
|
|
|