On Fri, 8 Jun 2007, Zhichu Chen wrote:
Hi,
I've written the following test file:
====================== \setupcolors[state=start] \setuppagenumbering[state=stop] \setupinteraction [state=start]
\starttext
\MPdrawingdonetrue
\startMPdrawing draw (0,0)--(2cm,2cm); \stopMPdrawing \definesymbol[aa][\getMPdrawing]
\startMPdrawing draw (2cm,2cm)--(2cm,0); \stopMPdrawing
\definesymbol[bb][\getMPdrawing]
\startMPdrawing draw (0,0)--(2cm,0); \stopMPdrawing
\definesymbol[cc][\getMPdrawing]
\definefieldstack[somemap][aa,bb,cc][height=fit,width=fit,frame=on]
\fieldstack[somemap] \goto{here} [JS(Walk_Field{somemap})]
\stoptext ======================
It seems that the fieldstack does not work. Is there anything wrong?
I haven't tested this, but I think that all elements in the fieldstack should have the same bounding box. Look at the widget manual, where Hans shows how to make sure that all elements have the same bounding box. Aditya