How to deactivate a Tool to use another Tool?

Discussion created by ipeebles on Oct 9, 2013
Latest reply on Oct 9, 2013 by ipeebles
I have two toolsets. . one is used to modify features (move, rotate, scale, edit vertices) on the map and the other is used to delete features on the map. The problem is that my delete tool will not work with the modify features toolset. If the move feature button is checked from the modify features toolset, then I can delete a feature, but I want these tools to work separately.

My question is, can I disable a tool using a button?

I have attached a code sample. Any feedback will greatly be appreciated.