Disabling Rubberbanding

Hi there

I have a GoPalette where I only want the user to be able select one object at a time for external dragging to a GoView. Therefore I wish to disable to drawing og the rubberband rectangle, and only let the user select the object by clicking on it.

I can’t figure out how to do this. Should this be done by removing the Rubberbandtool from the view ?



Just call GoView.ReplaceMouseTool(typeof(GoToolRubberBanding), null)
In addition, you probably want to set the GoView.MaximumSelectionCount property to 1.