Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

Programatically Accessing the Increment & Decrement of a Slide Control.

Does anyone know if its possible to change the Increment and/or Decrement buttons in a Slide control? I know I can do this through the property pages but I can't find a method or property in the CNiImage class to gain access to these "buttons".

Basically I have a 3D Horizontal Fill Slide and want to make the rounded ends flash when the value is under or over range and I can't find a way of doing it.
0 Kudos
Message 1 of 3
(3,055 Views)
Take a look at the CNiSlide::Images method. The documentation describes how you can access a CNiImage that corresponds to parts of the slide, including the increment and decrement buttons. Once you have the CNiImage for the buttons, you can configure the animation, blinking, etc. For example:


CNiImage image = m_slide.Images(_T("Increment Button"));
image.BlinkInterval = CNiImage::SpeedVeryFast;

// ...


- Elton
0 Kudos
Message 2 of 3
(3,046 Views)
Many thanks, it worked great.
0 Kudos
Message 3 of 3
(3,042 Views)