Brilliant! That works perfectly. I might look into having a slight change
in color when entering Edit Mode. Would be great for navigating subpatch
windows and knowing which ones are locked or not. No experience with tcl
commands here.
Sam
> ------------------------------
>
> Message: 2
> Date: Fri, 4 Mar 2022 09:08:11 +0100
> From: IOhannes m zmoelnig <zmoelnig(a)iem.at>
> To: pd-list(a)lists.iem.at
> Subject: Re: [PD] plugin.tcl not changing anything, linux
> Message-ID: <45bec37a-eccb-402d-d7bb-f02b419921c9(a)iem.at>
> Content-Type: text/plain; charset="utf-8"; Format="flowed"
>
>
> On 3/4/22 04:31, Samuel Burt wrote:
> > IOhannes and James. Thanks for the replies.
> >
> > I found the relevant line in pdtk_canvas.tcl. I know modifying that isn't
> > permanent, because the next update might break it, but it did let me
> > replace -background white with -background gray95, which is cool. Now,
> I'll
> > just have to figure out if it's possible to reuse this command in a tcl
> > plugin file.
>
>
> like this "mybackground-plugin.tcl"?
>
> ```
> bind PatchWindow <Configure> "+%W.c configure -background yellow"
> ```
>
> this adds a hook, so that whenever a PatchWindow is updated (that is:
> created, or moved around,...), it will re-configure the background
> property to your liking.
>
> gfmdsr
> IOhannes
>