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 |
|
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 by 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 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
|
|
|
Goto Forum:
Current Time: Thu May 16 00:57:42 CEST 2024
Total time taken to generate the page: 0.02065 seconds
|