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 » look of ctrl with styled horz and vert scrollbars
Re: look of ctrl with styled horz and vert scrollbars [message #37841 is a reply to message #37829] Fri, 16 November 2012 22:37 Go to previous messageGo to previous message
bushman is currently offline  bushman
Messages: 134
Registered: February 2009
Experienced Member
Looks like I found a makeshift solution when inspecting ScrollBars code. Unfortunately enough, however, it requires modifying ScrollBar.h hard code:
replace
StaticRect the_box
by
ParentCtrl the_box
in line 163.
Apparently, since ParentCtrl is transparent, it lets the background color show up through to the top Z level, which in itself is enough to take care of the nagging little bottom right square.
BTW, I also observed that ScrollBars constructor points its
Ctrl *box
member, which is protected, to the_box. One could therefore inherit from ScrollBars and re-point *box to a ParentCtrl instead, which would in turn avoid any direct manipulation of ScrollBar.h alltogether. However, then again, how to make TreeCtrl use my inherited class instead of ScrollBars?

Yet, what to do when Ctrl does not use ScrollBars, like ArrayCtrl, for example?

Thank you!

[Updated on: Fri, 16 November 2012 22:39]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to change window background?
Next Topic: TopWindow skin
Goto Forum:
  


Current Time: Thu May 16 00:57:42 CEST 2024

Total time taken to generate the page: 0.02065 seconds