GoDiagram Web Reference
GoToolCreating Class
Members  Example 

This tool allows the user to add a copy of an object to the document by dragging in the background where and how large it should be.
Syntax
'Declaration
 
<SerializableAttribute()>
Public Class GoToolCreating 
   Inherits GoTool
   Implements IGoTool 
[SerializableAttribute()]
public class GoToolCreating : GoTool, IGoTool  
Example
For modeless use, you would typically create this tool when initializing a GoView: For modal use, you might create this tool in a command invoked from a menu or toolbar button or keyboard event handler:
GoToolCreating ctool = new GoToolCreating(goView1);
GoPolygon tri = new GoPolygon();
tri.BrushColor = Color.LightBlue;
tri.AddPoint(5, 0);
tri.AddPoint(0, 10);
tri.AddPoint(10, 10);
ctool.Prototype = tri;
goView1.ReplaceMouseTool(typeof(GoToolRubberBanding), ctool);
GoToolCreating ctool = new GoToolCreating(goView1);
GoPolygon tri = new GoPolygon();
tri.BrushColor = Color.LightBlue;
tri.AddPoint(5, 0);
tri.AddPoint(0, 10);
tri.AddPoint(10, 10);
ctool.Prototype = tri;
ctool.Modal = true;
ctool.OneShot = false;
goView1.Tool = ctool;
Inheritance Hierarchy

System.Object
   Northwoods.GoWeb.GoTool
      Northwoods.GoWeb.GoToolCreating

Requirements

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

See Also

Reference

GoToolCreating Members
Northwoods.GoWeb Namespace

 

 


© 2013. Northwoods Software Corporation. All Rights Reserved.

Send Feedback