11-27-2013 08:36 PM - edited 11-28-2013 03:12 AM
@gosenbach wrote:
I ran across this thread trying to recall how to do this. I thought I would post this simple solution for anyone else looking to do this.
Fortunately, nobody will ever need to do that ever again, because (as mentioed by others already) we now have the radiobutton control. 😄
(A radiobutton control even works if the VI is in edit mode).
Some comments:
12-02-2013 09:56 AM
Hi Altenbach,
95% of the time I would agree with that 🙂
In this case though, I was working on a test select dialog where the user checks the tests they want to run in teststand and only some of them are mutually exclusive. I did not want to mix just a couple of radios in will all the checkboxes. Mainly because I thought keeping it all the same style checkboxes would be nicer to look at from a UI perspecitive.
Gregory Osenbach, CLA
Fluke
12-02-2013 10:58 AM
Yes, if you need a custom logic, it is probably best to implement it as an x-control (using similar code in the facade vi) so it also works correctly while in edit mode.
(Example: Long ago, I made one that always retains the last two selected buttons, ;))
In any case, my suggestions about code improvements still apply. 😉