onclick deactivate multi-funcations

Discussion created by simon.miles.rbwm on Jan 10, 2011
Latest reply on Jun 10, 2011 by hzhu
Hi there

i've got a map that displays my legend, navigation, has find tools and an identify tool all in docks. All worked well until i added in a measure tool, also in a dock, but i've hit a problem.

When i click on my measure distance button, both the measure and identify tool activate. I fingered out, with a little bit of help, how to deactivate/reactivate the navigation button once the measure tool has finished measuring, but cant work out how to deactivate/reactivate the Identify function. 

I think that i need to add in a .deactivate() in the below code and have tried a few things but i haven't managed to get it working. Any ideas?

<div dojotype="dijit.form.Button" onClick="navToolbar.deactivate() tb.activate(esri.toolbars.Draw.POLYLINE)"><img src="http://moon/images/measure.png" alt="measure distance"> Distance = <span id="distance"></span></div>