Pan with left click hold

Hi, I am very sorry if I missed another post that might have answered this. I have a toggle button in my UI. when “selected”, I want left-click-hold to accomplish pan. When not selected, I want left click only be able to select items individually (no select box). thanks for your help.

You can set the myDiagram.toolManager.dragSelectingTool.isEnabled and/or myDiagram.toolManager.panningTool.isEnabled properties as you see fit. And the isEnabled property on any other Tools that you care about too.