Layout policy with non-resizeable children [message #247566] |
Mon, 02 March 2009 18:51 |
|
I am working on an application that is similar to the Shapes example, so I
have been basing my code on that. The child figures of my container
(corresponding to the Ellipse and Rectangle shapes in the example) can be
moved around the container, but I don't want them to be resizeable. When I
add the LayoutEditPolicy, it creates resize handles on the children when
they are selected. I can't work out where exactly it does that, and
whether I can tell it just to use drag handles.
I tried adding a NonResizeableEditPolicy to the child edit parts, but that
didn't help - in fact, when I did that, the ghost figure no longer
appeared when dragging the children. I then tried removing the
LayoutEditPolicy from the container. This gave me the drag handles and
ghost figure on the child again, but now the move command wouldn't work.
It always thought I was trying to do an orphan request, not a move,
because it couldn't find the target (i.e.
DragEditPartsTracker.targetEditPart was always null). What edit policy do
I need to put on the container so that it can be the target edit part?
Colin Sharples
CTG Games Ltd
Wellington, New Zealand
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03056 seconds