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
Removing 3D effect from staticText frame
Moderators: CEGUI MVP, CEGUI Team
-
- Not too shy to talk
- Posts: 23
- Joined: Sat Mar 03, 2007 22:54
- scriptkid
- Home away from home
- Posts: 1178
- Joined: Wed Jan 12, 2005 12:06
- Location: The Hague, The Netherlands
- Contact:
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.
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.
Who is online
Users browsing this forum: No registered users and 20 guests