LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Amazingly basic question about where a Boolean checkbox control is on the palettes

Solved!
Go to solution

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?

 

DavidBoyd_0-1744138012350.png

 

 

Thank!

 

Dave

David Boyd
Sr. Test Engineer
Abbott Labs
(lapsed) Certified LabVIEW Developer
0 Kudos
Message 1 of 10
(364 Views)
Solution
Accepted by DavidBoyd

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)

 

altenbach_0-1744139338831.png

 

0 Kudos
Message 2 of 10
(354 Views)

Looks like a System Checkbox on Windows 11.  Allow me to plug Quickdrop and simply typing checkbox to see what options you get. 

elset191_0-1744139451711.png

 

--
Tim Elsey
Certified LabVIEW Architect
0 Kudos
Message 3 of 10
(349 Views)

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

David Boyd
Sr. Test Engineer
Abbott Labs
(lapsed) Certified LabVIEW Developer
0 Kudos
Message 4 of 10
(345 Views)

@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.


___________________
Try to take over the world!
0 Kudos
Message 5 of 10
(292 Views)

@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.

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 6 of 10
(279 Views)

@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.


___________________
Try to take over the world!
0 Kudos
Message 7 of 10
(257 Views)

@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.

Rolf Kalbermatter
My Blog
0 Kudos
Message 8 of 10
(244 Views)

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

David Boyd
Sr. Test Engineer
Abbott Labs
(lapsed) Certified LabVIEW Developer
0 Kudos
Message 9 of 10
(192 Views)

@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.


___________________
Try to take over the world!
0 Kudos
Message 10 of 10
(176 Views)