Custom Shape as a Selection object


#1

Hi,
I have created a “CustomRoundedRectangle” shape set it as a “selectionObjectName”.
When i select the object, the blue selection remains rectangle and not gets the figure shape:


What can be done ?
Regards,
Tany


#2

What is your Part.selectionAdornmentTemplate?


#3

Oooopppss,
I forgot all about it.
Thanks


#4

I have implemented a RoundedRectangle for selectionAdornmentTemplate for Group, but when the group is expanded, when i select the group i still see the RoundedRectangle, it is not adjusted to the expanded group borders.


#5

Did you define it using a Placeholder?


#6

yep,
The problem is that I defined 2 panels in my Group template

  1. “Spot” panel with fixed size RoundedRectangle, holding group info (icon, name, status…)
  2. “Auto” panel with RoundedRectangle and go.PlaceHolder to hold the group members.
    I toggle their visibility by “isSubGraprhExpanded”.
    The selectionAdornmentTemplate also defines RoundedRectangle on the Group level.
    So, when the group is collapsed, the RoundedRectangle of the selectionAdornmentTemplate covers the “Spot” panel RoundedRectangle.
    But, when expanded, the selectionAdornmentTemplate RoundedRectangle remains see behind the
    “Auto” RoundedRectangle and go.PlaceHolder .

#7

Is there a reason the selectionAdornmentTemplate cannot be just a single “Auto” Panel with a Shape around a Placeholder? I’m sorry, but I really do not understand your situation.


#8

I found the bug,
I will use only ONE rectangle that surrounds all elements.
Thanks