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 2025 | 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 2025 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: CSS Phoebus spinner step size |
From: | "Kasemir, Kay via Tech-talk" <tech-talk at aps.anl.gov> |
To: | "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>, "Pietryla, Anthony F." <afp at anl.gov> |
Date: | Fri, 21 Aug 2020 18:08:09 +0000 |
If you want to provide users with a way to adjust the "increment" property of a spinner in a display, you can add for example a text field adjacent to the spinner, connect it to a PV "loc://incr(1)", and then have a rule on the spinner that updates its "increment"
property from that PV:
Add rule to spinner, trigger PV "loc://incr(1)", check "Value as _expression_", with just one _expression_ with boolean
"true" and value "pv0".
Instead of a local PV for an increment that's per-display you could also use a global PV if all users of that spinner should use the same increment.
Instead of putting the increment PV on the display, you could also have a rule that computes the increment from for example the current value, i.e. the increment changes automatically based on the value.
-Kay
|