StaticText widget background colour?

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

Protagonist
Not too shy to talk
Not too shy to talk
Posts: 23
Joined: Sat Mar 03, 2007 22:54

StaticText widget background colour?

Postby Protagonist » Tue Mar 06, 2007 00:31

Hi there, I was wondering if anybody knows if the background colour of a StaticText or other suitable widget can be set?

I want a key of "boxes" to indicate 1 of 3 options currently being selected. I made a StaticText box, with the background and frame enabled, which looks good for a non selected state. I was hoping to chage the background from grey (using WindowsLook), to black (and invert the text). The text part is simple, but, I can't seem to find a property for the background.

I checked the API, but I can't even find BackgroundEnabled in it, let alone a comphrensible list of options.

Any help would be greatly appreciated, thanks!

Rackle
CEGUI Team (Retired)
Posts: 534
Joined: Mon Jan 16, 2006 11:59
Location: Montréal

Postby Rackle » Mon Mar 26, 2007 12:18

Some looknfeel implement the FrameColours property
->setProperty("FrameColours", "tl:FFFF0000 tr:FFFF0000 bl:FFFF0000 br:FFFF0000");

Each string value is made up of "aarrggbb" parts in Hexadecimal.
tl: top left, tr: top right, bl: bottom left, br: bottom right

Hope this helps (even though it's late).


Return to “Help”

Who is online

Users browsing this forum: No registered users and 21 guests