Hi,
Macro written by Hans does not work.
Best regards,
Fabrice

% macros=mkvi
\starttext

\starttexdefinition MyOtherHeader #where #day #month #year #title

\defineoverlay[whatever][\useMPgraphic{whatever}]

\startuseMPgraphic{whatever}
 path p;
 p:=fullsquare xyscaled (\overlaywidth,\overlayheight) squeezed 1pt;
 fill p withcolor white ;
 draw p withpen pencircle scaled 2pt withcolor 0.625white ;
 picture d ;
 d := textext("\quad#where\space\endash\space\date[d=#day,m=#month,y=#year]\quad")
 shifted .5[ulcorner p,urcorner p];
 fill boundingbox d withcolor white ; draw d ;
setbounds currentpicture to p ;
\stopuseMPgraphic

\framed [
        width=\hsize,
        height=5em,
        foregroundstyle=\itx,
        Background=whatever,
        frame=off,
        ]
           {#title
        }

\stoptexdefinition

\MyOtherHeader{Premières STMGB-STMGD}{17}{11}{2014}{{\ss \tfb \bf Second degré : résolution d'une équation du second degré}}

\stoptext