Horizontal slider [SOLVED]
Posted: Sat May 10, 2008 12:08
Hi, I started putting a horizontal slider together and it looks fine and works correctly when I mouse click on the track ( the thumb moves towards the mouse - left and right). However, when I click on the thumb itself and try to drag, it doesn't move.
I saw a thread about needing to write your own classes, but then there was another thread where it looked like the required code had been added. Yes, I do have the latest code update, as mentioned in that thread. I figured as it's nearly working, the code is there and I'm just not setting it up properly?
Here's the looknfeel:
thanks...
I saw a thread about needing to write your own classes, but then there was another thread where it looked like the required code had been added. Yes, I do have the latest code update, as mentioned in that thread. I figured as it's nearly working, the code is there and I'm just not setting it up properly?
Here's the looknfeel:
Code: Select all
<!--
***************************************************
TaharezLook/SliderThumbHoriz
***************************************************
-->
<WidgetLook name="TaharezLook/SliderThumbHoriz">
<Property name="HorizFree" value="True" />
<Property name="VertFree" value="False" />
<ImagerySection name="normal">
<ImageryComponent>
<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" ><UnifiedDim scale="1.0" type="Height" /></Dim>
</Area>
<Image imageset="TaharezLook" image="HorizSliderThumbNormal" />
<VertFormat type="Stretched" />
<HorzFormat type="Stretched" />
</ImageryComponent>
</ImagerySection>
<ImagerySection name="hover">
<ImageryComponent>
<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" ><UnifiedDim scale="1.0" type="Height" /></Dim>
</Area>
<Image imageset="TaharezLook" image="HorizSliderThumbHover" />
<VertFormat type="Stretched" />
<HorzFormat type="Stretched" />
</ImageryComponent>
</ImagerySection>
<StateImagery name="Normal">
<Layer>
<Section section="normal" />
</Layer>
</StateImagery>
<StateImagery name="Hover">
<Layer>
<Section section="hover" />
</Layer>
</StateImagery>
<StateImagery name="Pushed">
<Layer>
<Section section="hover" />
</Layer>
</StateImagery>
<StateImagery name="Disabled">
<Layer>
<Section section="normal">
<Colours topLeft="FF7F7F7F" topRight="FF7F7F7F" bottomLeft="FF7F7F7F" bottomRight="FF7F7F7F" />
</Section>
</Layer>
</StateImagery>
</WidgetLook>
<!--
***************************************************
TaharezLook/SliderHoriz
***************************************************
-->
<WidgetLook name="TaharezLook/SliderHoriz">
<Property name="VerticalSlider" value="False" />
<Property name="MouseButtonDownAutoRepeat" value="True" />
<Property name="WantsMultiClickEvents" value="False" />
<NamedArea name="ThumbTrackArea">
<Area>
<Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="RightEdge" ><UnifiedDim scale="1.0" type="RightEdge" /></Dim>
<Dim type="BottomEdge" ><UnifiedDim scale="1.0" type="BottomEdge" /></Dim>
</Area>
</NamedArea>
<Child type="TaharezLook/SliderThumbHoriz" nameSuffix="__auto_thumb__">
<Area>
<Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="Width" ><ImageDim imageset="TaharezLook" image="HorizSliderThumbNormal" dimension="Width" /></Dim>
<Dim type="Height" ><UnifiedDim scale="1.0" type="Height" /></Dim>
</Area>
</Child>
<ImagerySection name="main">
<ImageryComponent>
<Area>
<Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="TopEdge" ><AbsoluteDim value="3" /></Dim>
<Dim type="Width" ><UnifiedDim scale="1.0" type="Width" /></Dim>
<Dim type="Height" ><UnifiedDim scale="1.0" offset="-6" type="Height" /></Dim>
</Area>
<Image imageset="TaharezLook" image="HorizSliderBody" />
<VertFormat type="Stretched" />
<HorzFormat type="Stretched" />
</ImageryComponent>
</ImagerySection>
<StateImagery name="Enabled">
<Layer>
<Section section="main" />
</Layer>
</StateImagery>
<StateImagery name="Disabled">
<Layer>
<Section section="main">
<Colours topLeft="FF7F7F7F" topRight="FF7F7F7F" bottomLeft="FF7F7F7F" bottomRight="FF7F7F7F" />
</Section>
</Layer>
</StateImagery>
</WidgetLook>
thanks...