I've created a simple GUI that contains a static image with a transparent background titlebar in XML. I've subscribed the staticimage with the CEGUI::Window::EventMouseDoubleClick event. However, every time I double click the static image, the application crashes here:
Code: Select all
void FrameWindow::toggleRollup(void)
{
if (isRollupEnabled())
{
d_rolledup ^= true;
// event notification.
WindowEventArgs args(this);
onRollupToggled(args);
}
}
The onRollupToggled function is corrupt (i.e. NULL) for some reason. In other words, stepping into onRollupTogged causes the Instruction Pointer to point to 0000:0000.
Thanks for any help,
Brian
P.S. my XML code is:
Code: Select all
<?xml version="1.0" ?>
<GUILayout>
<Window Type="DefaultWindow" Name="root">
<Window Type="WindowsLook/StaticImage" Name="CADETControlWnd" >
<Property Name="Image" Value="set:CADETImageset image:Background" />
<Property Name="BackgroundEnabled" Value="False" />
<Property Name="FrameEnabled" Value="False" />
<Property Name="RollupEnabled" Value="False" />
<!-- Change these properties to modify the dimensions of the CADET Static window -->
<Property Name="AbsoluteRect" Value="l:0.0 t:0.0 r:640.0 b:331.25" />
<!--
<Property Name="AbsoluteRect" Value="l:0.0 t:0.0 r:320.0 b:165.625" />
-->
<Window Type="WindowsLook/FrameBkgnd" Name="CADETControlBkgnd">
<Property Name="Visible" Value="true" />
<Property Name="RelativeRect" Value="l:0.0 t:0.0 r:1.0 b:1.0" />
<Property Name="RollupEnabled" Value="False" />
</Window>
<Window Type="WindowsLook/StaticImage" Name="TFCWnd" >
<Property Name="RollupEnabled" Value="false" />
<Property Name="Image" Value="set:CADETImageset image:TFC" />
<Property Name="BackgroundEnabled" Value="False" />
<Property Name="FrameEnabled" Value="False" />
<Property Name="RelativeRect" Value="l:0.867188 t:0.264151 r:0.918945 b:0.367925" />
</Window>
</Window>
</Window>
</GUILayout>

