04-08-2025 01:48 PM
I've been a regular developer in LabVIEW for... forever, yet I'm stumped where the simple Boolean checkbox (pictured) can be located on any of my controls palettes - system, classic, modern, silver... When I need one, I generally reach for the classic checkbox but somewhere I encountered these. Can anyone tell me where they find these?
Thank!
Dave
Solved! Go to Solution.
04-08-2025 02:09 PM - edited 04-08-2025 02:12 PM
I have those in the system palette, but like anything there, they inherit from the windows UI theme. They might look different depending on OS version and UI customization.
(same are also in the classic palette)
(the visual in the palette is however fixed, so you might not recognize them)
04-08-2025 02:11 PM
Looks like a System Checkbox on Windows 11. Allow me to plug Quickdrop and simply typing checkbox to see what options you get.
04-08-2025 02:14 PM
Chris,
Yep, I don't know why the control's properties identifies it as a "Dialog Boolean". It is right there in the System palette, but I swore that was a different item. As you said, it'll be painted with "system" colors so it'll vary depending on the OS settings.
Thanks! Good enough for the present usage.
Dave
04-09-2025 01:28 AM
@DavidBoyd wrote:
I don't know why the control's properties identifies it as a "Dialog Boolean". It is right there in the System palette, but I swore that was a different item.
Up until LV ~8, the system controls were called dialog controls. I'm not sure where you see that text in the properties, and I don't remember seeing LV adding that description to the control's properties anywhere, but I suppose it's possible some versions did this and that your code comes from one of those versions.
As a side note, my understanding is that the system controls are not actually the native system controls, but rather controls that NI built that mimic the look of the system controls. I haven't tried running older LV versions with newer OS versions to see how closely they managed this with the changes the OS made to the controls over time.
04-09-2025 03:50 AM
@tst wrote:
As a side note, my understanding is that the system controls are not actually the native system controls, but rather controls that NI built that mimic the look of the system controls. I haven't tried running older LV versions with newer OS versions to see how closely they managed this with the changes the OS made to the controls over time.
Maybe previously, but now it must be real controls as they do in fact change looks according to the OS you run them in.
04-09-2025 07:45 AM
@Yamaeda wrote:
Maybe previously, but now it must be real controls as they do in fact change looks according to the OS you run them in.
I doubt this was changed, since the controls are still part of the panel. My understanding is that LV basically goes to the OS to get some relevant stuff about how the control should look and then builds the control on its own in a way that's supposed to match the look, but I don't know the actual specific details. I guess that the relevant stuff didn't change that much between OS versions over the years.
04-09-2025 08:48 AM
@tst wrote:
@Yamaeda wrote:
Maybe previously, but now it must be real controls as they do in fact change looks according to the OS you run them in.
I doubt this was changed, since the controls are still part of the panel. My understanding is that LV basically goes to the OS to get some relevant stuff about how the control should look and then builds the control on its own in a way that's supposed to match the look, but I don't know the actual specific details. I guess that the relevant stuff didn't change that much between OS versions over the years.
Yes! There is a way to query the actual settings and LabVIEW seems to do that and then draws the things itself to how it believes it should look. Seems to be amazingly accurate. It does that to a somewhat lesser detail on all platforms.
04-09-2025 11:06 PM - edited 04-09-2025 11:08 PM
tst,
Presently using 2023Q1 I believe (sorry, replying via mobile browser), and the control properties dialog box is titled “Dialog Boolean”. Don’t quote me on the capitalization, and maybe there’s a colon in there.
This is just one of those places where a cluster typeset needs a few Boolean elements, and somehow instead of using the classic controls checkbox, a system checkbox appeared. I just didn’t recognize it as such.
Dave
04-10-2025 01:29 AM
@DavidBoyd wrote:
tst,
Presently using 2023Q1 I believe (sorry, replying via mobile browser), and the control properties dialog box is titled “Dialog Boolean”. Don’t quote me on the capitalization, and maybe there’s a colon in there.
Ah, I hardly ever notice the title of the properties window. A quick test shows that LV 7.0 uses "dialog" at the beginning of the title for the other dialog controls, so I'm guessing this was just an oversight, where someone forgot to remove it for the system booleans.