[Solved] Change background bolour of an Image
Posted: Sat Mar 07, 2009 13:39
I tried to change the colour of the background for a Image:
Well it didnt work ^^
Search says I am not the first one who has this problem:
http://www.cegui.org.uk/phpBB2/viewtopic.php?t=3473&highlight=background+color+colour
... but I cant see if the problem was solved there and what the solutions is
I tried to replace
by this:
with the result of getting this error:
I noticed that there are such commented lines in the looknfeel:
<!--<ColourRectProperty name="BackgroundColours" />-->
... but uncommenting results in the same error.
Code: Select all
label->setProperty("BackgroundEnabled", "true");
label->setProperty("BackgroundColours", "tl:FF000000 tr:FF000000 bl:FF000000 br:FF000000");
Well it didnt work ^^
Search says I am not the first one who has this problem:
http://www.cegui.org.uk/phpBB2/viewtopic.php?t=3473&highlight=background+color+colour
... but I cant see if the problem was solved there and what the solutions is
I tried to replace
Code: Select all
<StateImagery name="WithFrameEnabledBackground">
<Layer>
<Section look="TaharezLook/StaticShared" section="background" />
</Layer>
</StateImagery>
by this:
Code: Select all
<StateImagery name="WithFrameDisabledBackground">
<Layer>
<Section look="TaharezLook/StaticShared" section="background" />
< ColourRectProperty name="BackgroundColours" />
</Section>
</Layer>
</StateImagery>
with the result of getting this error:
Code: Select all
terminate called after throwing an instance of 'CEGUI::FileIOException'
I noticed that there are such commented lines in the looknfeel:
<!--<ColourRectProperty name="BackgroundColours" />-->
... but uncommenting results in the same error.