From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
06-18-2021 01:54 PM - edited 06-18-2021 01:57 PM
Hi All,
I am trying to read a list of files then display this list on the front panel to allow users to select which file they would like to interact with.
I have an array of boolean blank buttons. Since all elements of an array have to have the same properties (ie labels) I have an array of string indicators transparently overlaid on top of the boolean array.
This looks as desired but the problem is the string indicators block the buttons from being clicked. Below is a screenshot showing the transparent string label blocking the button.
Any advice for how to fix this or a work around would be very appreciated.
06-18-2021 01:56 PM
Why not use a multi-column list box instead. Much more powerful than the boolean array.
06-18-2021 02:18 PM
Use transparent buttons and put the strings underneath.
06-18-2021 03:27 PM
A list box was, and still is, a consideration. I just don't really care for how the list box looks aesthetically, nor would it match the rest of my programs aesthetically.
Neither of those reasons are deal breakers, I just didn't know if I was overlooking something obvious.
06-18-2021 04:11 PM
There are plenty more scalable solutions but it is difficult to give advice without more information.
What the max number of buttons? (or is there no upper limit?)
Does the user select exactly one or several (zero to many)?
Possible solutions:
What is the actual purpose of all this? Maybe there is a very different, but better solutions! What is your definition of "interact with"?
06-18-2021 04:46 PM
I often mix control/indicator styles so that I can get a cohesive looking UI. You can do some interesting things with the classic controls. The system controls aren't too bad either and the NXG style is the most modern. I do put effort into our UIs so that they don't look anything like a LabVIEW application.
06-18-2021 05:40 PM
Here. It's trivial.