LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to set color attributes of controls to match the desktop theme/color scheme.

Is there a way to programmatically, dynamically set the color attributes of controls to match the desktop theme/color scheme to the computer on which the LabWindows/CVI application is running?
0 Kudos
Message 1 of 2
(3,065 Views)
Hi Tech Kitch,

You can call SetPanelAttribute (panelHandle, ATTR_CONFORM_TO_SYSTEM_THEME, 1); to specify the controls on that panel to be drawn based on the Windows theme setting. 

If you want to override the theme drawing for an individual control, you can call SetCtrlAttribute (panelHandle, PANEL_CONTROL, ATTR_DISABLE_PANEL_THEME, 1);.

Best Regards,
Jonathan N.
National Instruments
0 Kudos
Message 2 of 2
(3,059 Views)