"Click through" an unfilled RoundedRectangle [message #1070795] |
Thu, 18 July 2013 13:35  |
Eclipse User |
|
|
|
Hi all,
I have a ContainerShape for which I create an unfilled RoundedRectangle. This is used to group other shapes together visually such that when the group shape is moved, any shapes that are completely contained by the group shape are moved along with it. I've also arranged to always keep the group shape at the top of the Z-order so that it can't be obscured by any other shapes (a requirement).
The move feature works, but now I'm unable to "click through" the group shape to any of the contained shapes. Also, the mouse hit test does not find any of the contained shapes because the group shape is the first one it finds, thus none of the context buttons appear for the contained shapes. Is there a way to do this without having to create a PolyLine instead of a RoundedRectangle? Ideally what I'd like is to have the group shape pass all mouse hits down to contained shapes, but not down to the Diagram.
Thanks in advance,
Bob
|
|
|
|
|
|
Re: "Click through" an unfilled RoundedRectangle [message #1073710 is a reply to message #1073275] |
Thu, 25 July 2013 06:46  |
Eclipse User |
|
|
|
Hi Michael,
Thanks for the hint, but I need to be able to move the inner shapes into and out of the Group shape so disabling their Move Feature is not an option. I've also run into a couple of other problems with this solution, unrelated to Graphiti.
I finally decided to use a Polyline GA for the Group shape and changed its Move Feature to adjust the locations of the contained shapes in postMove() by invoking their Move Features.
Bob
|
|
|
Powered by
FUDForum. Page generated in 0.08015 seconds