Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » How to prevent the selection of Shape
How to prevent the selection of Shape [message #1778542] Sat, 16 December 2017 12:00 Go to next message
xi yahui is currently offline xi yahuiFriend
Messages: 32
Registered: October 2017
Member
When I click the shape, the selection-handles will show. How to prevent the selection of Shape? Some shape can't be moved, resized. So I want to prevent the selection behavior.
Re: How to prevent the selection of Shape [message #1778576 is a reply to message #1778542] Mon, 18 December 2017 08:01 Go to previous messageGo to next message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1931
Registered: July 2009
Location: Walldorf, Germany
Senior Member
You can set the shape to inactive. Inactive shapes do not react to selection.

Michael
Re: How to prevent the selection of Shape [message #1778583 is a reply to message #1778576] Mon, 18 December 2017 09:51 Go to previous messageGo to next message
xi yahui is currently offline xi yahuiFriend
Messages: 32
Registered: October 2017
Member
I have a containershape. There are some children(text,polyline) in the containershape. I want to fix the containershape in a position and prevent the containershape from moving and changing size.
I set the containershape to inactive.
But the containershape don't display.
Re: How to prevent the selection of Shape [message #1778636 is a reply to message #1778583] Tue, 19 December 2017 08:05 Go to previous messageGo to next message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1931
Registered: July 2009
Location: Walldorf, Germany
Senior Member
Ah sorry, for root shapes the inactive attribute will not work. In that case you need to return null for the move and resize features for these shapes in your feature provider.

Michael
Re: How to prevent the selection of Shape [message #1778851 is a reply to message #1778636] Fri, 22 December 2017 13:52 Go to previous message
xi yahui is currently offline xi yahuiFriend
Messages: 32
Registered: October 2017
Member
Thanks Michael.
Previous Topic:ContextMenu
Next Topic:How to directedit text in customfeature?
Goto Forum:
  


Current Time: Fri Apr 26 00:24:30 GMT 2024

Powered by FUDForum. Page generated in 0.04929 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top