Page 1 of 1

Removing 3D effect from staticText frame

Posted: Mon Jun 11, 2007 12:48
by Protagonist
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 :)

Posted: Wed Jun 13, 2007 00:42
by Protagonist
Nobody? :(

Posted: Thu Jun 14, 2007 22:04
by Protagonist
:(

Posted: Fri Jun 15, 2007 08:47
by scriptkid
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.