LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Check Box size with "Use Windows Visual Style for Controls" enabled

When a panel has the option "Use Windows Visual Style for Controls" enabled, a Check Box control can't be resized.

I mean that I can set its size through "Edit Check Box" or "Control Coordinates and Dimensions" (SHIFT+F10) window, but the size of the check box doesn't change (see attached)

Is this an expected behavior?

 

The size of Square Radio Button can be easily changed.

Vix
-------------------------------------------
In claris non fit interpretatio

-------------------------------------------
Using LV from 7
Using LW/CVI from 6.0
0 Kudos
Message 1 of 4
(6,602 Views)

Vix,

 

Unfortunately, Windows does not allow you to resize checkboxes. This is a common problem for many Windows developers and the workaround is typically to create your own checkbox. The good news is that since CVI has it's own version of the checkbox for non Window's styled controls. Use the Disable Panel Theme attribute of the checkbox control to disconnect it from the Windows visual style and use the CVI version.

National Instruments
0 Kudos
Message 2 of 4
(6,589 Views)

@D_Biel wrote:

 

The good news is that since CVI has it's own version of the checkbox for non Window's styled controls. Use the Disable Panel Theme attribute of the checkbox control to disconnect it from the Windows visual style and use the CVI version.


Returning to this issue 8 years later, I can't find Disable Panel Theme among the property nodes or the Properties page of the checkbox.  How would I do it? Does this ability still exist?

0 Kudos
Message 3 of 4
(3,874 Views)

"Property node" sounds like you are programming in LabVIEW, while in this board we are discussing on LabWindows/CVI controls. Since I see that you usually post in the LV board, it seems today you have landed to the wrong one Smiley Wink



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 4 of 4
(3,861 Views)