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
Tabs with different background colours
Moderators: CEGUI MVP, CEGUI Team
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
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.
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.
Useful Links: Forum Guidelines | Documentation | Tutorials | HOWTO | Videos | Donate to CEGUI | CEGUI Twitter
Return to “Modifications / Integrations / Customisations”
Who is online
Users browsing this forum: No registered users and 4 guests