It works almost exactly as i need, but sometimes the size of the GoGrid and the GoView doesn't equal each other.
Is there a mistake in my events handlers? Or may be i passed something important?
Thanks!
After the example was started, bounds of the goView1.Grid don’t correspond to goView1.Bounds. It takes place and then i change the scale of goView1 and its size. M<span =“hps”>ismatch <span =“hps”>bounds <span =“hps”>can also be observed <span =“hps”>when you <span =“hps”>using <span =“hps”>ClickCreateTool, when <span =“hps”>the <span =“hps”>created object <span =“hps”>is out of <span =“hps”>view (It happens when there are scrolls exist on the view).
OK, I think the thing you are missing is that the GoView doesn’t have to be displaying the 0,0 point of the document. I think you want to place the origin of the grid at GoView.DocPosition… assuming I now understand your goal.