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 #26186 is a reply to message #26180] Fri, 09 April 2010 11:07 Go to previous messageGo to previous message
mrjt is currently offline  mrjt
Messages: 705
Registered: March 2007
Location: London
Contributor
Like this?
#include "CtrlLib/CtrlLib.h"
using namespace Upp;

GUI_APP_MAIN
{
	TopWindow wnd;
	TabCtrl tab;
	StaticRect a, b;
	Button button;
	DropList list;
	
	a.Color(Red());
	a.Add(button.LeftPosZ(4, 64).BottomPosZ(4, 24));

	b.Color(Blue());
	b.Add(list.LeftPosZ(4, 88).TopPosZ(4, 24));
	list.Add(1, "Option 1").Add(2, "Option 2");
	
	tab.Add(a.SizePos(), "Red");
	tab.Add(b.SizePos(), "Blue");
	
	wnd.Add(tab.SizePos());
	wnd.CenterScreen().SetRect(0, 0, 200, 200);
	
	wnd.Run();
}
 
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 20:20:47 CEST 2024

Total time taken to generate the page: 0.03069 seconds