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 spinner and text box instant write |
From: | "Kasemir, Kay via Tech-talk" <tech-talk at aps.anl.gov> |
To: | EPICS tech-talk <tech-talk at aps.anl.gov>, "Wang, Andrew" <wang126 at llnl.gov> |
Date: | Mon, 15 Aug 2022 12:34:11 +0000 |
> .. when I input a number into a spinner .. if I press enter .. the number shows up correctly ..
The text field of the spinner behaves just like text entry field.
Text Entry widgets display the current value of a PV. When you click the widget or type anything into the widget, it enters an 'active' state, indicated by a different background color. It will now stop displaying received PV updates so you can edit without
interruptions. Press 'Enter' to confirm. Press 'Escape', 'Tab', or click elsewhere to abort.
Imagine you want to change the value from "98" to "101".
So you have to type "1", "0", "1", "<Enter>", and the value will change from 98 to 101.
If we instead sent everything that's typed right away, the value of the PV would be
Moving a motor from 98 to 101 mm is what you wanted.
Instead it hunted from 98 to 1, then 10, then 101.
Or worse in case you managed to "append" the first "1" to 98, so now we jerk the device from 98 to 981, ..
The spinner does right away send the value update when clicking the up/down arrows because they are presumably configured to result in just about the right step size change.
-Kay
|