Hi guys,
Using C# and Visual Studio 2003, I want to build a control that contains
a large square area for visual display of some data that will most
likely not fit on a normal PC screen (perhaps 4000x1000 pixels on
average, some times larger, some times smaller). The data displayed is
not something that needs to be seen all at once, and the users will
expect to do a little scrolling.
This visual display will be put into a normal Windows Form, with a panel
with some controls docked to the top, a status bar docked to the bottom,
and my new control set to Dock/Fill.
Now, naturally, if we say that the graphics area of my display is
4000x1000, and the control rectangle is only 400x100, scrollbars should
automatically appear. If someone has a screen that is big enough, the
whole visual area should show up at once. To complicate matters, there
are two static areas inside the control that should always be visible -
an icon list to the left that will scroll with the rest up and down, but
always remain on the left side, and a time reference on the top that
will scroll horizontally with the data but always remain on the top.
If this isn't impossible to understand - does someone know the best way
to implement this? Should I just subclass UserControl and add some
scroll bars manually and do everything myself, or is there something
else that would do most of the work for me (apart from repainting the
visual layout of course)?
Thanks for any help!
Rune Jacobsen