Removal of adornments

Hi,

I have a palette in which I have some highlights on mouseover and click. I want to disable all other default selection adornments. How can I remove the default selection adornments?

It is probably easiest to disable those tools whose Adornments you do not want to see. For exampke:

  $(go.Palette, . . .,
    { . . .,
      "rotatingTool.isEnabled": false
    })

This is assuming, of course, that you do not want users rotating nodes in your Palette.

Wait --by default Palette.isReadOnly is true, so its RotatingTool will not be able to start, so nodes in the palette cannot be rotated and thus they do not get rotating handles. So now your question is odd, because the RotatingTool is effectively disabled already.

I do not have any tools as such. This is the structure of my node:

$(go.Node, 'Vertical',
                {
                    locationObjectName: 'BODY',
                    locationSpot: go.Spot.Center,
                    selectionObjectName: 'ICON',
                },
                new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify),
                $(go.Panel, 'Vertical',
                    $(go.Picture, {
                        name: 'ICON',
                        width: 45, height: 45, background: 'transparent',
                        imageStretch: go.GraphObject.Uniform
                    }, new go.Binding('source', 'paletteSource')),
                ),
                $(go.TextBlock, {
                    margin: 4,
                    maxSize: new go.Size(80, NaN),
                    wrap: go.TextBlock.WrapFit,
                    editable: true,
                    stroke: 'white'
                },
                    new go.Binding('text')),
            );

If you do not want to avoid getting all of the standard tool adornments, but instead only want to not get the standard selection adornment, you can set Part.selectionAdorned to false.