Home All Groups Group Topic Archive Search About

Scrollable control scrolling strange ....

Author
20 Jan 2006 11:01 AM
Romain TAILLANDIER
Hi group

I have a class MyControl : ScrollableControl
I set the AutoScroll = true;

This class is using a MyControlColletion : Control.ControlColletion and
overrides the Controls property
All controls in this collection are lines, of different width.
If one of the lines is larger than the width of MyControl, or if there are
too many lines, i need to scroll.
When it is happend, the scrollbars appears, ok.

But when I scroll, all the lines stay at the same place (but flashing as if
they was trying to move).
The scrollbars seems to work, and i can scroll to the infinite. If i doso
the cursors of the bars go more and more
little as if my control was very large, and get back reasonable size if i
scroll back to the origin.
BUT the point 0,0 is always visible, so i always able to see the extrem left
of the first line, and i never see what it could have after the bounds.

What i do wrong ?

Thanks
ROM

AddThis Social Bookmark Button