Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » Look and Chameleon Technology » Skinning Scrollbar thumb
Skinning Scrollbar thumb [message #25267] Tue, 16 February 2010 02:47 Go to previous message
bushman is currently offline  bushman
Messages: 134
Registered: February 2009
Experienced Member
I've successfully skinned the scrollbar thumb with images using the vthumb and the hthumb arrays, like in
 ScrollBar::Style scrollstyle = ScrollBar::StyleDefault();
 ...
 scrollstyle.vthumb[0] = Images::VThumbImage0;
 scrollstyle.vthumb[1] = Images::VThumbImage1;
 ...
 scrollstyle.hthumb[0] = Images::HThumbImage0;
 scrollstyle.hthumb[1] = Images::HThumbImage1;
 ...
 myctrl.SetScrollBarStyle(scrollstyle);


However, if the thumb button length increases inside the scroll bar (so as to cope with some less scrollable space in the view field of a ctrl, for example, due to data being removed from the ctrl), the thumb image stretches (resizes) to match the new thumb length, which in turn distorts the image and therefore ruins the skinning result.

Sad You see my point?

My question is: Is there a workaround? I see that Windows does it wonderfully if the original default style ScrollBar::StyleDefault() is kept. How do you manage that? I mean, the three little thumb button grooves in Windows' scroll bars remain undistorted as the thumb size varies.

Help appreciated...many thanks in advance.


 
Read Message
Read Message
Read Message
Read Message
Previous Topic: upp-x11-src-1965.tar.gz and compiling under Debian Lenny
Next Topic: RichEdit crashes with BlueBar
Goto Forum:
  


Current Time: Sun Apr 27 22:48:06 CEST 2025

Total time taken to generate the page: 0.00742 seconds