From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

CCWSlide "ValuePairsOnly" mode from C++

Hello,
How to set the "ValuePairsOnly" mode of CCWSlide control from C++ (or more
generaly from code) ?

Thanks
Stephane
0 Kudos
Message 1 of 2
(3,233 Views)
Stephane:

Unfortunately, it is not possible to set the "Value Pairs Only" option of the CWSlide control programmatically. The controls do not always expose a property or method that corresponds directly with a setting in the property pages. I suggest either setting this option through the property pages, or using the "Import Style" method to import a CWSlide configuration that has the settings you want. You can call this method programmatically, so you can use this as a workaround of sorts if you would like to change the slide at run-time, or want to dynamically create sliders with the "Value Pairs Only" option enabled.

Also, although you can't set this option programmatically, you can add and remove Value Pairs programmatically.

Good Luck,

Chris Wood
Applications E
ngineer
National Instruments
0 Kudos
Message 2 of 2
(3,233 Views)