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 » TabCtrl » How to change tabctrl background color ?
Re: How to change tabctrl background color ? [message #26176 is a reply to message #26175] Thu, 08 April 2010 12:41 Go to previous messageGo to previous message
mrjt is currently offline  mrjt
Messages: 705
Registered: March 2007
Location: London
Contributor
It is not possible to do this while retaining OS theming. The reason for this is that the background color of the tab is baked into the theme image that Upp receives from the OS, and so cannot be replaced.

Even disregarding theming it's not easy, mainly due to the way TabCtrl is constructed:
1- Create versions of the theme images (see CtrlLib/Ctrls.iml for copies of these) with a semi transparent background.
2- Duplicate TabCtrl code and alter PaintTabs so that it paints a background color on the tab before the ChPaint that draws the tab style (it's the second, complex one).

It would be nice if 2 didn't require complete code duplication, if you can fix that with a patch it would probably be accepted and then you wouldn't have to worry about code syncing to future Upp revisions.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Hide tab in TabCtrl
Next Topic: Question and problems around TabCtrl
Goto Forum:
  


Current Time: Sat May 04 18:51:13 CEST 2024

Total time taken to generate the page: 0.02908 seconds