I would like to have a custom frame for a textbackground section. I found code for how to use an overlay background for a framedtext section, but it doesn't seem to work for textbackground. Am I missing something or do the two environments require different approaches?
Minimal example with a simple dotted frame:
\startuseMPgraphic{dashed}
path p; p := (0,0) --
(OverlayWidth,0) --
(OverlayWidth, OverlayHeight) --
(0, OverlayHeight) -- (0,0);
draw p withpen pencircle scaled 1.5pt dashed withdots;
\stopuseMPgraphic
\defineoverlay[Dashed][\useMPgraphic{dashed}]
\definetextbackground
[withframe]
[frame=on, location=paragraph]
\definetextbackground
[withbackground]
[frame=off, location=paragraph, background=Dashed]
\starttext
\startframedtext[frame=on]
This is framedtext with frame
\stopframedtext
\startwithframe
This is textbackground with frame
\stopwithframe
\startframedtext[frame=off, background=Dashed]
This is framedtext with background
\stopframedtext
\startwithbackground
This is textbackground with background
\stopwithbackground
\stoptext