This project has moved. For the latest updates, please go here.

Is there a way to set/get a Panel's position/rotation/size ?

May 28, 2009 at 2:00 PM

I am trying to get some control over the panels floating around in my application.
I can't find a way to know where they are (for instance, to detect when a panel has moved off screen)
and I also want to move them around myself.

Any ideas ?



May 31, 2009 at 12:17 PM

Canvas.getLeft(panel) and Canvas.getLeft(panel) will return the left and top of the panel's loction.

Unfortunately, Canvas.getRight and Canvas.getBottom always return NaN.
Also, there is no way to know the size or rotation of a panel, and no way to set it's position.
(Canvas.setLeft does not work)

I hope these issues will be addressed soon, because for me these are very big limitations.

Shachar Weis.