LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Change color of ActiveX Controls

I've setup a simple program to imbed some
native ActiveX controls from microsoft (status bar,
slider control). There seems to not be a way to change
the color of the control to match my panel or other
controls from CVI.

Is there another method?
0 Kudos
Message 1 of 2
(3,170 Views)
To change the color of an ActiveX control in a CVI UIR you double-click the control on your panel in the UIR Editor to bring up its list of properties, this is the table of different values found in the Edit ActiveX Control dialog that pops up after double-clicking the control. From the properties list there will be settings for colors of different parts of the control IF the control allows you to change any. For instance if you place a Microsoft Forms 2.0 Togglebutton control on your panel, you can change the "Backcolor" property to change the color of the button from the previously mentioned properties list.

If you want to change the color programmatically, the ActiveX Control Driver created for the control will have a function that sets and gets the color
properties of the control.

Jason F.
Applications Engineer
National Instruments
www.ni.com/ask
0 Kudos
Message 2 of 2
(3,170 Views)