Yes it is possible. This is exactly what ROViewStack is about.
A ROViewStack is a stack of views. It is usually used to contains menus and popup,
triggered by the added view. This is convenient to not have the buttons or popup be under
the effect of zooming in and out.
Inserting elements in the stack makes the elements not subject to the variation of the
camera for the added views.
Here is an example:
-=-=-=-=-=-=-=-=-=-=-=-=
| stack view el1 el2 |
view := ROView new.
el1 := (ROEllipse red size: 30) element.
view add: el1.
el1 @ RODraggable.
el1 translateTo: 100 @ 100.
stack := ROViewStack new.
stack zoomInButton; zoomOutButton.
el2 := (ROEllipse green size: 30) element.
el2 @ RODraggable.
stack add: el2.
stack addView: view.
stack open
-=-=-=-=-=-=-=-=-=-=-=-=
Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel
http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
On Nov 25, 2013, at 8:51 AM, Yuriy Tymchuk <yuriy.tymchuk(a)me.com> wrote:
Hi,
Is it possible to have an element that does not scale when the camera extent changes? Eg.
I want to have circle that is always 10px in diameter no matter what is the zoom.
Cheers.
Uko
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev