Page 1 of 1

Tabs with different background colours

Posted: Tue Mar 31, 2009 08:14
by SalvoFa
Hi all!

Is it possible to have multiple tabs (tabcontrol) with different background colours for each tab? I've tried to set the BackgroundColours property but it doesn't work.

Thank you.

Salvo

Posted: Tue Mar 31, 2009 08:49
by CrazyEddie
Hi,

The tabs are buttons, so you need two things; first, a button type that allows you to set the background colour that you then use as the tab buttons, and second, a means to target those buttons directly in code / layouts.

How you achieve the first thing will depend upon the lookandfeel in use - you need a white background image for the button, and then apply a colour to that by defining an appropriate property in the WidgetLook definition.

The second thing is basically discussed in the following thread about adding images to tab buttons: http://www.cegui.org.uk/phpBB2/viewtopic.php?t=3635

HTH

CE.

Posted: Tue Mar 31, 2009 08:53
by SalvoFa
Ok, thank you! :wink: