bobby
11/3/2004 12:54:00 PM
I am hacking on a usercontrol that creates a drawing surface with a
coordinate system but the design is not there yet. What I mean by coordinate
system is that it should have a ruler both horisontally and vertically. That
is no problem to draw. Also when implementing a zoom function it will not be
difficult to redraw the rulers with new values. But the problem arises when
it comes to scrolling because the rulers disappear out of the viewport which
is no good.
I would like to use the AutoScroll feature of a scrollable control, but
rulers are the problem. In the current design I use a single usercontrol
drawing directly on the surface. So the question is: How do I design so
rulers stay visible???
(What really should happen in the scroll is that the horisontal ruler can
scroll horisontally and likewise the vertical ruler. Drawing surface scrolls
in both directions)
Should I create three usercontrols (rulerX, rulerY, drawSurface) and then
place them all on an encapsulating usercontrol or what?
The design goal is to create a single control.
Any design ideas?