Home » U++ Library support » TabCtrl » How to change tabctrl background color ?
How to change tabctrl background color ? [message #26175] |
Thu, 08 April 2010 08:49 |
SIGEAL
Messages: 3 Registered: March 2010 Location: France
|
Junior Member |
|
|
Hi,
Well, the title says it all... What I want to achieve is to have different background colors for each tab of a tabctrl.
Any hint appreciated. Thanks.
--
Christophe
|
|
|
|
|
Re: How to change tabctrl background color ? [message #26186 is a reply to message #26180] |
Fri, 09 April 2010 11:07 |
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();
}
|
|
|
|
Goto Forum:
Current Time: Fri Sep 20 12:59:42 CEST 2024
Total time taken to generate the page: 0.03026 seconds
|