Northwoods.Go Assembly > Northwoods.Go Namespace > GoToolPanning Class : Modal Property |
When you add an instance of this non-autopanning tool to the GoView.MouseDownTools, you are using it in a non-Modal fashion. GoToolPanning panningtool = new GoToolPanning(myView); panningtool.AutoPan = false; myView.MouseDownTools.Add(panningtool);
This allows the user to use the other mode-less mouse tools, such as selecting, dragging, resizing, and linking as well as this manual panning tool when the user does a mouse down in the background.
If you use this manual panning tool in a modal fashion, the user will remain in this tool, able to pan the view whenever the user drags the mouse anywhere in the view. GoToolPanning panningtool = new GoToolPanning(myView); panningtool.AutoPan = false; panningtool.Modal = true; myView.Tool = panningtool;
The user can leave this mode by pressing the Cancel key or any other key.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2