1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 <2017> 2018 2019 2020 2021 2022 2023 2024 | Index | 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 <2017> 2018 2019 2020 2021 2022 2023 2024 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: Question about Edm dynamic display zone's fill color according to PVs |
From: | Rolf Keitel <[email protected]> |
To: | lzf neu <[email protected]>, tech_talk <[email protected]> |
Date: | Tue, 9 May 2017 09:53:57 -0700 |
Hi Zhefu,
--- in the edmobjects directory in the colors.list file you need to define static colors (I just chose the indices 0,1,2,3,...): static 0 blue { 0 0 65535 } static 1 green-yellow { 0 65535 0 65535 65535 0 } static 2 green-red { 0 65535 0 65535 0 0 } rule 3 zone-fill { = 1 : blue = 2 : green-yellow = 3 : green-red default: blue }
--- in the edmobjects directory in the calc.list file you need to define a calculated color: zone-fill A=1&&B=1?2:(A=0&&B=1&&C=1?3:1)
--- in your edm widget, e.g. a rectangle set the fill-color to zone-fill set the Color PV to CALC\zone-fill(PVa,PVb,PVc)
On 05/09/17 03:32, lzf neu wrote:
|