02-27-2024 07:34 AM
Hi,
I guess it is a well known topic but I just discover it.
In my GUI I have an array of clusters with some controls. Some of those controls are button with "Latch when released".
The problem is that since these are in an array in the end , the buttons are not released.
I attached a very simple example as demo.
Do you have any workaround? Of course I could handle them programmatically and reset to "false", but it's a bit annoying.
Thanks!
02-27-2024 08:04 AM
Why not resetting programmatically? It's very simple code. Otherwise, if possible, use clusters instead of arrays.
02-27-2024 09:24 AM - edited 02-27-2024 09:26 AM
If you have an array of clusters, it would help to attach an example that actually contains an array of clusters. 😄
In any case, here's a simple solution for an array. (It is scalable because it is independent of the array size.)
Once you show us your code with an array of clusters, we can adapt the solution.
Of course you need to be aware that latch action booleans reset from the non-default state to the default state, so if you desire latch action booleans that are TRUE by default, you would do a "OR true" in a similar way.
02-27-2024 10:02 AM - edited 02-27-2024 10:02 AM
Thank you both.
Yes, I know I can reset the controls programmatically, it's just a bit more tedious. I just find weird that it works for single button and for cluster, but not when they are in arrays.
02-27-2024 10:20 AM
@logatto wrote:
. I just find weird that it works for single button and for cluster, but not when they are in arrays.
We'll it's been like that since the beginning and I am sure there is probably a good reason for this design decision. 😄