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.
Why not use a multi-column list box instead. Much more powerful than the boolean array.
Use transparent buttons and put the strings underneath.
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.
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)?
What is the actual purpose of all this? Maybe there is a very different, but better solutions! What is your definition of "interact with"?
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.
Here. It's trivial.