children in scroll bars [SOLVED... i think]
Posted: Sat Jul 12, 2008 01:26
im trying to create a vscroll bar working and im getting an assertion error when it tries to load the widget.
line 512
Expression: d_childcomponent != 0
log file is here,
arathalion.alumnaie.net/misc/CELayoutEditor.log
here is the widget that is killing it
if anyone can tell me what im doing wrong it would be much appreceated.
Edit: I think its worth saying that i only added the <Property name="State" value="set:imageset image:iamge"/> lines cause it seemed to be the only major difference between that vscroll and working ones.
i have a working sliding bar and its child reference and the child widget look pretty much the same so i have little idea whats going wrong.
line 512
Expression: d_childcomponent != 0
log file is here,
arathalion.alumnaie.net/misc/CELayoutEditor.log
here is the widget that is killing it
Code: Select all
<!--
bbUI/vscroll
-->
<WidgetLook name="bbUI/vscroll">
<Property name="VerticalScrollbar" value="True" />
<Child type="bbUI/vscroll/thumb" nameSuffix="__auto_thumb__">
<Area>
<Dim type="LeftEdge">
<AbsoluteDim value="0"/>
</Dim>
<Dim type="TopEdge">
<AbsoluteDim value="0"/>
</Dim>
<Dim type="Width">
<UnifiedDim scale="1" type="Width"/>
</Dim>
<Dim type="Height">
<UnifiedDim scale="0.1" type="Height"/>
</Dim>
</Area>
</Child>
<Child type="bbUI/vscroll/down" nameSuffix="__auto_incbtn__">
<Area>
<Dim type="LeftEdge">
<AbsoluteDim value="0"/>
</Dim>
<Dim type="TopEdge">
<AbsoluteDim value="0"/>
</Dim>
<Dim type="Width">
<UnifiedDim scale="1"
type="Width"/>
</Dim>
<Dim type="Height">
<ImageDim imageset="bbButtons"
image="down"
dimension="Height"
/>
</Dim>
</Area>
<VertAlignment type="BottomAligned" />
<Property name="NormalImage" value="set:bbButtons image:down"/>
<Property name="HoverImage" value="set:bbButtons image:downHov"/>
<Property name="PushedImage" value="set:bbButtons image:downPre"/>
</Child>
<Child type="bbUI/vscroll/up" nameSuffix="__auto_decbtn__">
<Area>
<Dim type="LeftEdge">
<AbsoluteDim value="0"/>
</Dim>
<Dim type="TopEdge">
<AbsoluteDim value="0"/>
</Dim>
<Dim type="Width">
<UnifiedDim scale="1"
type="Width"/>
</Dim>
<Dim type="Height">
<ImageDim imageset="bbButtons"
image="up"
dimension="Height"
/>
</Dim>
</Area>
<Property name="NormalImage" value="set:bbButtons image:up"/>
<Property name="HoverImage" value="set:bbButtons image:upHov"/>
<Property name="PushedImage" value="set:bbButtons image:upPre"/>
</Child>
<ImagerySection name="en">
<ImageryComponent>
<Area>
<Dim type="LeftEdge">
<AbsoluteDim value="0"/>
</Dim>
<Dim type="TopEdge">
<AbsoluteDim value="0"/>
</Dim>
<Dim type="Width">
<UnifiedDim scale="1"
type="Width"/>
</Dim>
<Dim type="Height">
<UnifiedDim scale="1"
type="Height"/>
</Dim>
</Area>
<Image imageset="bbButtons"
image="vscroll"
/>
<VertAlignment type="Stretched"/>
</ImageryComponent>
</ImagerySection>
<StateImagery name="Enabled">
<Layer>
<Section section="en"/>
</Layer>
</StateImagery>
<StateImagery name="Disabled"/>
<NamedArea name="ThumbTrackArea">
<Area>
<Dim type="LeftEdge" >
<AbsoluteDim value="0" />
</Dim>
<Dim type="TopEdge" >
<ImageDim imageset="bbButtons"
image="up"
dimension="Height"
/>
</Dim>
<Dim type="RightEdge" >
<UnifiedDim scale="1.0"
type="RightEdge" />
</Dim>
<Dim type="BottomEdge" >
<UnifiedDim scale="1.0" type="BottomEdge">
<DimOperator op="Subtract">
<ImageDim imageset="bbButtons"
image="down"
dimension="Height"
/>
</DimOperator>
</UnifiedDim>
</Dim>
</Area>
</NamedArea>
<Property name="VerticalScrollbar" value="True"/>
</WidgetLook>
if anyone can tell me what im doing wrong it would be much appreceated.
Edit: I think its worth saying that i only added the <Property name="State" value="set:imageset image:iamge"/> lines cause it seemed to be the only major difference between that vscroll and working ones.
i have a working sliding bar and its child reference and the child widget look pretty much the same so i have little idea whats going wrong.