LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

scroll bar custom control

I am using the scroll bar custom control and was wondering if there is a way to set the thumb color to be different than the scroll bar color. If you use the ScrollBar_SetAttribute() function to change the color it always changes both the scroll bar color and the thumb color making it almost impossible to see the thumb.
 
Thanks,
Jim Vander Werp
Smiths Aerospace
Grand Rapids, MI
0 Kudos
Message 1 of 3
(3,168 Views)

There's no way to do it through the API provided with the scroll bar custom control. However, the source code for the custom control is provided in \toolslib\custctrl\scroll.c, and you can make that change yourself.

You just need to change the function DrawScrollBarThumb in scroll.c. Change the fillColor parameter of the call to PlotRectangle where the thumb is drawn, and that should do the trick.

- jared

Message 2 of 3
(3,154 Views)

Jared,

Super, that's exactly what I needed, I have it looking much better now!

Thanks,
Jim

0 Kudos
Message 3 of 3
(3,146 Views)