not rally but i want a rectangle there which will let me pan to other area in large canvas. and also i want to move this small canvas to any position on large canvas as per my convenience.
not rally but i want a rectangle there which will let me pan to other area in large canvas. and also i want to move this small canvas to any position on large canvas as per my convenience.
So the behaviour is pretty much different when comparing the small to the large view. Maybe you need to take a break in implementation and give yourself a moment to think what kind of functionalities do you actually need from those both views and how could you possibly be able to implement the required functionalities.
- when the rectangle inside the small view shall be moved (dragging anywhere inside the rect / dragging rect boundaries..)?
- when the small view itself shall be moved (always when not moving the rectangle?)
- how do you connect the views so that the large view adjusts it's world to correspond the small view's rectangle
- and so on...
Remember that a child widget is on top of it's parent. The child (the small view in your case) receives for example mouse events itself, you cannot catch them (without doing certain tricks) in the parent (the large view in your case).
J-P Nurmi
Bookmarks