![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
At 03:36 PM 12/17/2002 +0800, you wrote:
Is there any options to set shadowed frame (like the \usepackage{shadow} in
(the \shadowbox in latex sets the shadow under the bottom and to right side of the frame, sometimes we need to set the shadow in another place, for example, right side and under the bottom, or over the top and right side.)
Take your choice \starttext \startbuffer \framed[background=shadow,frame=off]{Does it work} \vskip1cm \framed[background=shadow,frame=off,align=right]{Does\\it\\work} \vskip1cm \stopbuffer \defineoverlay[shadow][\uniqueMPgraphic{shadow}] \startuniqueMPgraphic{xshadow} linejoin := butt ; fill OverlayBox shifted (2pt,-2pt) withpen pencircle scaled 2pt withcolor .7white ; fill OverlayBox withcolor white ; draw OverlayBox withpen pencircle scaled 2pt withcolor .3white ; setbounds currentpicture to OverlayBox enlarged 4pt ; \stopuniqueMPgraphic \getbuffer \startuniqueMPgraphic{xshadow} linejoin := butt ; draw (urcorner OverlayBox -- lrcorner OverlayBox -- llcorner Overlaybox) shifted (2pt,-2pt) withpen pencircle scaled 2pt withcolor .9white ; draw OverlayBox withpen pencircle scaled 2pt withcolor .3white ; setbounds currentpicture to OverlayBox enlarged 4pt ; \stopuniqueMPgraphic \getbuffer \startuniqueMPgraphic{shadow} linejoin := butt ; linecap := squared ; draw (bottomboundary OverlayBox & rightboundary OverlayBox) shifted (2pt,-2pt) withpen pencircle scaled 2pt withcolor .9white ; draw OverlayBox withpen pencircle scaled 2pt withcolor .3white ; setbounds currentpicture to OverlayBox enlarged 4pt ; \stopuniqueMPgraphic \getbuffer \stoptext ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------
participants (1)
-
Hans Hagen