NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Member
Stephane Bertoli
Posts: 5
0 Kudos

CCWSlide "ValuePairsOnly" mode from C++

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

Thanks
Stephane
Member
Chris_W1
Posts: 126
0 Kudos

Re: CCWSlide "ValuePairsOnly" mode from C++

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
By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page