Change color on a TTrackBar component lazarus / 31-LCL ---------------------------------------------------------------------- mrdebug · 2011-11-07 21:17 Is there a way for change the color of a TTrackBar component? My client wants red color from the zero value to the arrow position in a TTrackBar component. Wants then the default color from the arrow position to the end value of the TTrackBar component. Can I do this? How? ---------------------------------------------------------------------- felipemdc · 2011-11-08 09:08 Use TCDTrackBar: wiki.lazarus.freepascal.org/Lazarus_Custom_Drawn_Controls (the wiki seams down) Make sure you use the very latest Lazarus svn (like from the last comit I just did). The CD controls are located in the package in lazarus/components/customdrawn but I intend to move them to the LCL Using this controls you can change the color pallete or change the entire drawing of the control. ---------------------------------------------------------------------- felipemdc · 2011-11-08 09:11 In your case just the palette won't do it, you will need to create a new style which installs itself as dsExtra2 and override the method DrawTrackBar. You can copy the code from one of the other styles and modify it. ---------------------------------------------------------------------- zeljko · 2011-11-12 16:01 Felipe, I haven't tried CD controls yet ... is it useable with eg qt widgetset ?