I'm using the WindowsLook/FrameWindow and the borders are overdrawing the contents of the Window. So my questions are:
1. Am I doing something wrong or is this a bug? If a bug, where should it get patched?
2. In general, where can I modify the frame edge size for the WindowsLook/FrameWindow? Changing the "SizingBorder" property didn't help ..
Thank you in advance!
How do I prevent frame edges of overdrawing subcomponents?
Moderators: CEGUI MVP, CEGUI Team
- Mistaril
- Not too shy to talk
- Posts: 24
- Joined: Wed Jan 12, 2005 12:06
- Location: Helsinki, Finland
- Contact:
How do I prevent frame edges of overdrawing subcomponents?
Kai Backman, programmer
ShortHike.com, Space Settlement Simulation Guild
ShortHike.com, Space Settlement Simulation Guild
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
How do I prevent frame edges of overdrawing subcomponents?
Umm. I'm not sure I understand
If you mean just the blue (when selected) edges, then this is by design; eveything is clipped to the inner edge, same as what you get on Windows. If this is not what you mean, can I ask for a screenshot?
The size of the frame edge is part of the 'look' so I didn't make it adjustable (there are other reasons too, related to future directions of the system). The SizingBorder setting affects the size of the area used for sizing (funny that, eh?), though does not affect the imagery.
What kind of thing are you wanting to achieve? This looks like it's something else to go on the TODO list
CE.
If you mean just the blue (when selected) edges, then this is by design; eveything is clipped to the inner edge, same as what you get on Windows. If this is not what you mean, can I ask for a screenshot?
The size of the frame edge is part of the 'look' so I didn't make it adjustable (there are other reasons too, related to future directions of the system). The SizingBorder setting affects the size of the area used for sizing (funny that, eh?), though does not affect the imagery.
What kind of thing are you wanting to achieve? This looks like it's something else to go on the TODO list
CE.
- Mistaril
- Not too shy to talk
- Posts: 24
- Joined: Wed Jan 12, 2005 12:06
- Location: Helsinki, Finland
- Contact:
How do I prevent frame edges of overdrawing subcomponents?
Here is an image of what is happening:
and here is the layout code:
How do I say: "Add these subwindows and have them sized so that they are within the visual area". Can I do this in relative mode or do I need to switch to absolute?
Also, are there hi-res sources available for the WindowsLook imageset, or should we contribute one ..
and here is the layout code:
Code: Select all
<?xml version="1.0" ?>
<GUILayout>
<Window Type="WindowsLook/FrameWindow" Name="Debug/Frame">
<Property Name="MetricsMode" Value="Relative" />
<Property Name="Size" Value="w:0.2 h:0.8" />
<Property Name="Position" Value="x:0.8 y:0.0" />
<Property Name="Text" Value="Debug Tool" />
<Property Name="CloseButtonEnabled" Value="false" />
<Property Name="RollUpEnabled" Value="true" />
<Property Name="RollUpState" Value="true" />
<Property Name="SizingEnabled" Value="false" />
<Window Type="WindowsLook/StaticText" Name="Debug/Statistics">
<Property Name="Size" Value="w:1 h:0.15" />
<Property Name="Position" Value="x:0 y:0" />
<Property Name="Text" Value="Statistics" />
<Property Name="VertFormatting" Value="BottomAligned" />
</Window>
<Window Type="WindowsLook/StaticText" Name="Debug/DebugText">
<Property Name="Size" Value="w:1 h:0.85" />
<Property Name="Position" Value="x:0 y:0.15" />
<Property Name="VertScrollbar" Value="true" />
<Property Name="Text" Value="Message" />
<Property Name="VertFormatting" Value="TopAligned" />
</Window>
</Window>
</GUILayout>
How do I say: "Add these subwindows and have them sized so that they are within the visual area". Can I do this in relative mode or do I need to switch to absolute?
Also, are there hi-res sources available for the WindowsLook imageset, or should we contribute one ..
Kai Backman, programmer
ShortHike.com, Space Settlement Simulation Guild
ShortHike.com, Space Settlement Simulation Guild
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
How do I prevent frame edges of overdrawing subcomponents?
Right I see
The current best way to fix that is to just offset the StaticText widgets a little from the left (you can do that as absolute metrics, but still keep the window in relative mode if you need to). I might look into addressing it, but anyone who already has the required adjustment in their layouts would then need to re do them, so I'm reluctant to do that. One of the things I'm going to be adding is the ability to specify a location and direction from where windows are positioned, so this would be what you need, though it's obviously not available yet (so you're stuck with the above kludge for the time being)
To get hi-res images, you can change the native resolution to something higher (though be warned, it will not look good at lower resolutions), or alternatively, switch off auto-scaling for that imageset. A contributed hi-res imageset would be a cool alternative
CE.
The current best way to fix that is to just offset the StaticText widgets a little from the left (you can do that as absolute metrics, but still keep the window in relative mode if you need to). I might look into addressing it, but anyone who already has the required adjustment in their layouts would then need to re do them, so I'm reluctant to do that. One of the things I'm going to be adding is the ability to specify a location and direction from where windows are positioned, so this would be what you need, though it's obviously not available yet (so you're stuck with the above kludge for the time being)
To get hi-res images, you can change the native resolution to something higher (though be warned, it will not look good at lower resolutions), or alternatively, switch off auto-scaling for that imageset. A contributed hi-res imageset would be a cool alternative
CE.
Return to “Modifications / Integrations / Customisations”
Who is online
Users browsing this forum: No registered users and 10 guests