I have one question that i do not know how to resolve.
I attached you my context.
One parent and invisible rectangle with 2 children rectangles at both sides.
The thing is that when i click on the parent (the invisible white part where the text is) i can move the whole of it. However, if i click and move at one of the other colored rectangles, just this rectangle is moved.
What i want is to make those 2 rectangles static (to cannot move them) and if you try to move them, is the parent the one who moves (like if you were clicking at it).
What i want is to make those 2 rectangles static (to cannot move them) and if you try to move them, is the parent the one who moves (like if you were clicking at it).
I'm a newbie, but I can tell you that this is the default behaviour for shapes added with the parameter active set to false.
Try something like this:
final Rectangle invisibleRectangle = gaService
.createInvisibleRectangle(containerShape);
...
{
final Shape shape = peCreateService.createShape(containerShape,
false);
final Rectangle rectangle = gaService.createPlainRectangle(shape);
...
I know what you mean but the point is than inside the rectangles, i want to add some objects and if it is not active, i cannot select what is inside (if i am not wrong). =S
Michael Wenz Messages: 1370 Registered: July 2009 Location: Walldorf, Germany
Senior Member
Victor,
if you put other active shapes inside the inactive ones, the inner active
shapes would be selectable. Just keep in mind that the inner shapes are
positioned reletive to the next outer active shape.