Removing 3D effect from staticText frame

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

Removing 3D effect from staticText frame

Postby Protagonist » Mon Jun 11, 2007 12:48

High there.
I'm using the WindowsLook scheme.
As defined in the WindowsLook.looknfeel file, staticText widgets have a 3d like frame rendered. I want to render a frame, but was wondering how I could go about removing the 3d effect, so it's just a flat colour?
Bassically, I'm finding it hard to make sense of the looknfeel file, and was wondering if anybody knows what parts to remove to make frame's flat in colour. I could then just define a flatStaticText for example, by using that.
Any help would be really appreciated.
Thanks a lot :)

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

Postby Protagonist » Wed Jun 13, 2007 00:42

Nobody? :(

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

Postby Protagonist » Thu Jun 14, 2007 22:04

:(

User avatar
scriptkid
Home away from home
Home away from home
Posts: 1178
Joined: Wed Jan 12, 2005 12:06
Location: The Hague, The Netherlands
Contact:

Postby scriptkid » Fri Jun 15, 2007 08:47

Hi,

sorry ;) I am not sure if you can just remove the frame, i tried to replace the Areas in the StaticText definition with this:

<Area>
<Dim type="LeftEdge">
<AbsoluteDim value="0" />
</Dim>
<Dim type="TopEdge">
<AbsoluteDim value="0" />
</Dim>
<Dim type="RightEdge">
<UnifiedDim scale="1" type="RightEdge" />
</Dim>
<Dim type="BottomEdge">
<UnifiedDim scale="1" type="BottomEdge" />
</Dim>
</Area>

so 'normal' dimensions instead of image dimensions but to no avail: i still noticed a frame-looking colour... However you can change the colour by using the FrameColour property. For example this line makes a green frame:

widget.setProperty("FrameColours", "tl:FF00dd00 tr:FF00dd00 bl:FF00dd00 br:FF00dd00")

Hope this helps a bit!
Good luck.


Return to “Help”

Who is online

Users browsing this forum: No registered users and 26 guests