Page 1 of 1

how to put background image in StaticText?

Posted: Sat Mar 17, 2007 04:31
by phoenixy
Hi, all..

I'm trying to upgrade CEGUI from 0.4.x to 0.5.0b..
and it looks like there's no more background image things in StaticText.

There was a method called setBackgroundImage in 0.4.x, but now it's gone, and I can't even set the property using setProperty.

Does anybody know how to do this?

thanks in advance~

Posted: Sat Mar 17, 2007 07:32
by Levia
Well...you should be able to do it with setProperty I suppose, but Im not sure because I dont use 0.5.

Code: Select all

window->setProperty("BackgroundImage", "image:ImageName");

Or something like that. Sorry :)

Posted: Mon Mar 19, 2007 19:21
by phoenixy
Levia wrote:Well...you should be able to do it with setProperty I suppose, but Im not sure because I dont use 0.5.

Code: Select all

window->setProperty("BackgroundImage", "image:ImageName");

Or something like that. Sorry :)


I hope I should be able to do it using setProperty,

but there's no such property in StaticText of 0.5..