If your custom control inherits from System.Windows.Forms.HScrollBar, you can just set GoView.HorizontalScrollBar. The same goes for VScrollBar and GoView.VerticalScrollBar.
although I cant test it yet, it looks it might just work
As a test, I just defined a CustomHScrollBar inheriting from HScrollBar, and then set my view’s HorizontalScrollBar property to an instance of this control. Everything worked as I believe you would expect.
You shouldn’t have to do anything. By default setting the GoView.HorizontalScrollBar property also changes the GoView.BottomBar property, since they refer to the same HScrollBar control.
Ah I remember being here before…
By default the value of GoView.HorizontalScrollBar is a System.Windows.Forms.HScrollBar, which does inherit from ScrollBar.
Well, as I said earlier, GoRuler does not inherit from ScrollBar, but a GoRuler works fine as the GoView.BottomBar, if you don’t want the standard scrollbar there. It’s just that you need to implement a GoView.PropertyChanged event handler to keep track of changes to the GoView.DocPosition and GoView.DocScale properties.
Hi, can you point me at a sample of where GoRuler is implemented as your GoRuler works?
GoRuler is in the Northwoods.Go.Draw.dll assembly/namespace.
p.Height = 12;
p.BackColor = Color.LightGreen;
goView1.BottomBar = p;
Now I understand… im on about the scrolling… yes the bar appears in the correct place, sorry about the misunderstanding, im talking about keeping the scrollbar in sync with the godiagram view
Thank you got it
Hi, i just needed sample of implemention with external srcollbar.