Slider width/height.
Posted: Mon Jun 28, 2010 01:52
I would like my slider widget's thumb's height to be set based on a PropertyDefinition called sliderThumbImage -- the sliderThumbImage's height. I cannot find any way to access the value of an image's width or height by using a PropertyDefinition.
Is this a limitation of CEGUI?
I currently use an absolute dim:
Is this a limitation of CEGUI?
I currently use an absolute dim:
Code: Select all
<Child type="TaharezLook/SliderThumb" nameSuffix="__auto_thumb__">
<Area>
<Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="Width" ><UnifiedDim scale="1.0" type="Width" /></Dim>
<Dim type="Height" ><AbsoluteDim value="14" dimension="Height" /></Dim>
</Area>
</Child>