Re: [Plib-users] Customizing puSlider objects
Brought to you by:
sjbaker
From: Steve B. <sjb...@ai...> - 2004-05-22 16:37:56
|
Ibrahim Mubarak wrote: > I am trying to customize a few sliders I am using. I know how to change their color, style, size, > width, etc... but I can't seem to find anything in the documentation on the website about how to > change the color of the little box that moves inside the slider. I think it's coded to always be drawn in the same colour as the slider's main widget. In plib/src/pui/puSlider.cxx, the function that draws the 'handle' on the slider is called puSlider::draw_slider_box. It calls 'puBox::draw' using the same colours as the puSlider itself - so without some significant recoding, this isn't something you can change. > Also, is there a way to make it so that the first part of the slider (from the lower end of it up > to the little box) is of a particular style and color, and the rest (from the little box up till > the higher end of the slider) is of another? Nope - there is no way to do that either. ---------------------------- Steve Baker ------------------------- HomeEmail: <sjb...@ai...> WorkEmail: <sj...@li...> HomePage : http://www.sjbaker.org Projects : http://plib.sf.net http://tuxaqfh.sf.net http://tuxkart.sf.net http://prettypoly.sf.net -----BEGIN GEEK CODE BLOCK----- GCS d-- s:+ a+ C++++$ UL+++$ P--- L++++$ E--- W+++ N o+ K? w--- !O M- V-- PS++ PE- Y-- PGP-- t+ 5 X R+++ tv b++ DI++ D G+ e++ h--(-) r+++ y++++ -----END GEEK CODE BLOCK----- |