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 #37829 is a reply to message #37827] |
Fri, 16 November 2012 07:44 |
|
kropniczki wrote on Fri, 16 November 2012 02:53 | I got a TopWindow with a background painted Black() and added a number of NoBackground() Ctrls to it.
If a Ctrl needs to show both (styled) horizontal and vertical scroll bars at the same time, Ctrl right bottom corner square does not get painted accordingly (black).
Any clue on how to fix it?
Thanks!!
|
Hi,
I believe that that little square is hardcoded to be painted in SColorFace color. So you can either modify that, but that will affect your entire application or you can make your own class which would inherit from ScrollBars and override FramePaint() - it is only three lines of code
Alternative and probably better solution would be to modify ScrollBars to so that it can figure out the correct color from the style of the scrollbars it contains. Shouldn't be difficult too.
Best regards,
Honza
|
|
|
Goto Forum:
Current Time: Fri May 10 13:28:16 CEST 2024
Total time taken to generate the page: 0.02463 seconds
|