Hi,
V4.4.0.51 and VS.NET 2003
I used following similar code to load a diagram from a table BLOB, then set up the initial scroll bar position to (0,0). But my code does not work. How can I setup the scroll bar to (0,0)- X bar to the most left, Y bar to the most top? and the scroll bar ranges?
Thanks,
Lan
//load tree to diagram from a stream stored in BLOB field
LoadTree();
//initilize view
diagram.View.PageSettings.Landscape=true;
diagram.View.PageSettings.Bounds.Width=600
diagram.View.PageSettings.Bounds.Height=400
this.diagram.Model.Width=600
this.diagram.Model.Height=400
//set view Magnification to 100
this.diagram.View.Magnification = new System.Drawing.Size(100, 100);
// set scroll bar initial position to (0,0)
this.diagram.View.ScrollBy(0,0); // not work
this.diagram.UpdateScrollRange();
this.diagram.UpdateScrollBars();
this.diagram.View.Update();
scroolbar.zip