Tabs with different background colours

For help with anything that CEGUI doesn't offer straight out-of-the-box, e.g.:
- Implementation of new features, such as new Core classes, widgets, WindowRenderers, etc. ...
- Modification of any existing features for specific purposes
- Integration of CEGUI in new engines or frameworks and writing of new plugins (Renderer, Parser, ...) or modules

Moderators: CEGUI MVP, CEGUI Team

SalvoFa
Not too shy to talk
Not too shy to talk
Posts: 29
Joined: Mon Feb 25, 2008 15:25
Location: Italy

Tabs with different background colours

Postby SalvoFa » Tue Mar 31, 2009 08:14

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

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Postby CrazyEddie » Tue Mar 31, 2009 08:49

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.

SalvoFa
Not too shy to talk
Not too shy to talk
Posts: 29
Joined: Mon Feb 25, 2008 15:25
Location: Italy

Postby SalvoFa » Tue Mar 31, 2009 08:53

Ok, thank you! :wink:


Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: No registered users and 3 guests