Hi,
Not really. Do you just mean that:
view->Bounds().PrintToStream(); view->ScrollTo(-5, -5); view->Bounds().PrintToStream();
will dump two different bounds?
Yes.
(the second is shifted, as is the origin of the local coordinate system)
I'm afraid I don't understand this affirmation...
These are 2 tests I made under R5:
$ ./BeApp2 bla Mouse Down: 31.000000, 30.000000 Have this BPoint: (100,100) - local coords ConvertToParent:--> 245.000000 105.000000. Origin: 0.000000 0.000000. Bounds():BRect(l:0.0, t:0.0, r:63.0, b:70.0) ScrollTo(-5,-5) ConvertToParent:--> 245.000000 105.000000. Origin: 0.000000 0.000000. Bounds():BRect(l:-5.0, t:-5.0, r:58.0, b:65.0) Adi: MyView::Draw() - BRect(l:-5.0, t:-5.0, r:58.0, b:65.0) bla Mouse UP: 26.000000, 25.000000
bla Mouse Down: 26.000000, 24.000000 Have this BPoint: (100,100) - local coords ConvertToParent:--> 250.000000 110.000000. Origin: 0.000000 0.000000. Bounds():BRect(l:-5.0, t:-5.0, r:58.0, b:65.0) ScrollTo(-5,-5) ConvertToParent:--> 250.000000 110.000000. Origin: 0.000000 0.000000. Bounds():BRect(l:-5.0, t:-5.0, r:58.0, b:65.0) bla Mouse UP: 26.000000, 24.000000
$ ./BeApp2 bla Mouse Down: 18.000000, 31.000000 Have this BPoint: (100,100) - local coords ConvertToParent:--> 245.000000 105.000000. Origin: 0.0000 0.0000. Bounds():BRect(l:0.0, t:0.0, r:63.0, b:70.0) SetOrigin(-20,-20) ConvertToParent:--> 245.000000 105.000000. Origin: -20.0000 -20.0000. Bounds():BRect(l:0.0, t:0.0, r:63.0, b:70.0) bla Mouse UP: 18.000000, 31.000000
bla Mouse Down: 29.000000, 37.000000 Have this BPoint: (100,100) - local coords ConvertToParent:--> 245.000000 105.000000. Origin: -20.0000 -20.0000. Bounds():BRect(l:0.0, t:0.0, r:63.0, b:70.0) SetOrigin(-20,-20) ConvertToParent:--> 245.000000 105.000000. Origin: -20.0000 -20.0000. Bounds():BRect(l:0.0, t:0.0, r:63.0, b:70.0) bla Mouse UP: 29.000000, 37.000000
The bounds rectangle is modified on Scroll, local origin remains unchanged.
night-night, Adi.