A native windows slider is actually called a 'trackbar'. As far as I can tell this is what a CAPI slider on Windows actually is.
This stackoverflow question suggests that in order to change the colour you would need to intercept the
WM_CTLCOLORSTATIC window message. CAPI doesn't allow direct access to a window's message loop, but you can substitute your own window procedure via a well-known technique called
subclassing. I have used this technique several times to customize the behaviour and appearance of CAPI windows, and if it's not too urgent when I have a moment I could dig out the code and send it to you.
This seems a lot of work just to get a colour change, however. If it's possible to change the colour of a slider through the CAPI on Mac OS X there might still be a way to do the same on Windows.. Personally if I want a widget with a non-native appearance I now tend to implement them as custom widgets on top of a pinboard-layout.
Chris
From: sven.emtell@doremir.com
Subject: Re: slider color
Date: Thu, 11 Oct 2012 16:11:39 +0200
To: relativeflux@hotmail.co.uk; lisp-hug@lispworks.com
Oops. I forgot to mention that this is on Windows (LWW6.1).
On Mac OS X (LWM6.1) this is not a problem.
/Sven
11 okt 2012 kl. 16:06 skrev Christopher Melen:
As far as I know CAPI sliders are rendered entirely by the native windowing system. I imagine what you want is possible via the FLI, however. What platform are you on?
Chris
---
Sven Emtell, CTO, DoReMIR Music Research
Check out the ScoreCleaner introductory video
here