Alrighty, I have a slider up and running here: http://rcoos.org/carolinasrcoosrev2/geoext/examples/tree.html although I still have to work out getting it positioned correctly and determine why I can set the initial value to 100 but the thumb starts on 0.
I think in the end this will just be an OpacitySlider, I have not coded it that way in the plugin, I just relay the event bits back to the tree. What I am concerned about is if my approach is even correct. The plugin is here: http://rcoos.org/carolinasrcoosrev2/geoext/lib/GeoExt/widgets/SliderPlugin.j s In short, I created a div in the onRenderNode, then created an Ext.Slider and set its renderTo to the div I just created. I then created: slider.on("change",node.ui.onSliderChange,node.ui) to send the slider change notice to the TreeNodeUIEventMixin handler. I am concerned my approach is not correct for this. My concern is the slider event should initially come from the TreeNodeUIEventMixin as the Radiobutton's onClick does. My debugging seemed to indicate that onClick comes from the LayerNodeUI. My other area of concern is what the arguments for the change handler in TreeNodeUIEventMixin should be. I used the arguments that come from the 'change' event of the slider object. This differs from the onClick handler which is a browserevent object. Anyway, hopefully this makes some sense and I'm quite happy to share what I've done with the geoext community if it is useful for anyone else. Dan _______________________________________________ Users mailing list [email protected] http://www.geoext.org/cgi-bin/mailman/listinfo/users
