Thanks Stan,
This worked for the measure tool. I didn't have quite as much luck with the draw widget. I tried switching setInfoWindowOnClick in the startup and destroy functions of the draw widget. startup seemed to work, but destroy did not give the popup back to Identify. Here's my code starting on line 371 of the Widget.js of the Draw Widget. (I don't seem to have access to the syntax highlighter in my forum window here.)
destroy: function() {
if(this.drawBox){
this.drawBox.destroy();
this.drawBox = null;
}
if(this.pointSymChooser){
this.pointSymChooser.destroy();
this.pointSymChooser = null;
}
if(this.lineSymChooser){
this.lineSymChooser.destroy();
this.lineSymChooser = null;
}
if(this.fillSymChooser){
this.fillSymChooser.destroy();
this.fillSymChooser = null;
}
if(this.textSymChooser){
this.textSymChooser.destroy();
this.textSymChooser = null;
}
this.inherited(arguments);
this.map.setInfoWindowOnClick(true); //<<ADDED THIS LINE
},
startup: function() {
this.map.setInfoWindowOnClick(false); //<<ADDED THIS LINE //<<ADDED THIS LINE
this.inherited(arguments);
this.viewStack.startup();
this.viewStack.switchView(null);
}