Hi,
Adi Oanca <adioanca@xxxxxxxxx> wrote:Adi Oanca wrote:If we want to fix this "local origin" problem, we need to change the bounds rectangle so that we will not get and automated scroll. I think this is the right way to go.If there are no objections I'll start coding for this change.
Actually, I don't even understand what you mean by "automated scroll".
Let me ::Draw() :-) ------------------------------------------------ | | | paper | | | | | | 0,0 | | x | | | | (5,3) | | +------------+ | | | | | |bounds -> | | | | | | | | +------------+ | | | | | ------------------------------------------------ SetOrigin(-5,-3); ------------------------------------------------ | | | (new 0,0) paper | | x | | | | (old 0,0)(new 5,3) | | x------------+ | | | | | |newBounds >| (old 5,3) | | | | +-------|----+ | | +------------+ | | | | | | |old bounds -> | | | | +------------+ | | | | | ------------------------------------------------
After SetOrigin() the bounds rectangle points to another piece of our paper. That's what I wanted to say with "auto scroll" BUT, if I think better, it might not matter at all because children are expressed in local coordinates which refer to local origin, and any drawing done before SetOrigin() should be identical after. I will not change the bounds rectangle on SetOrigin(), and see if all works well.
But other than that, I think that the bounds rectangle should indeed honour the origin of the view - if that doesn't cause too much pain :-)
I hope not. :-(
bye,Adi.