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 |
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: Sat May 04 20:20:47 CEST 2024
Total time taken to generate the page: 0.03069 seconds
|