bug with ScrollableControl & AutoScrollPosition in 2.0 beta2 ??

  • Thread starter Thread starter Lloyd Dupont
  • Start date Start date
L

Lloyd Dupont

I have a scrolable control
I set its scrollable position to
this.AutoScrollPosition = new Point(20, 20);

if I get the position after that, it's inverted!
Console.WriteLine(this.AutoScrollPosition);
=> {X=-20, y=-20}

and if I try to set negative value, they are zeroed....
this.AutoScrollPosition = new Point(-20, -20);
Console.WriteLine(this.AutoScrollPosition);
=> {X=0, Y=0}

my question is:
is it normal? (hence I should program with this logic in mind)
or is it a bug? (hence that would be fixed and I will have to modify my
code)
 
don't worry, ScrollableCOntrol is pretty hopeless anyway, so I'm going to
build my own.
now if you have links to already made available such control, that would be
nice.


hopeless things discovered so far with ScrollableControl:
- at last for 2.0 beta 2: the AustoScrollPosition you set is multiply by -1
- scrolling break my content into peaces and my shapes in the wrong places?
- I want to scroll when the user drag the content and after setting the new
AutoScrollPosition, not even a call to INvalidate or BeginInvoke(Invalidate)
would repaint correctly
 
Back
Top