[NTG-context] goto & framed

Peter Rolf indiego at gmx.net
Tue Oct 17 20:39:00 CEST 2006


Renaud AUBIN wrote:
> 
> Hi folks !
> 
> Consider the working example:
> 
> \usemodule[pre-original]
> 
> \starttext
> \startbuffer[stack1]
> draw (0,0)--(10cm,10cm);
> \stopbuffer
> 
> \startbuffer[stack2]
> draw (0,10cm)--(10cm,0);
> \stopbuffer
> 
> \startbuffer[stack3]
> draw (0,5cm)--(10cm,5cm);
> \stopbuffer
> 
> 
> \definesymbol[step 1][{\processMPbuffer[stack1]}]
> \definesymbol[step 2][{\processMPbuffer[stack1,stack2]}]
> \definesymbol[step 3][{\processMPbuffer[stack1,stack2,stack3]}]
> 
> \definefieldstack
>    [stack]
>    [step 1,step 2,step 3]
>    [frame=off]
> 
> \defineoverlay[cowbg][{\externalfigure[cow][width=10cm]}]
> 
> \framed[background=cowbg,frame=off,offset=none,backgroundoffset=0pt]{{\fieldstack[stack]}}
> 
> \goto{next}[JS(Walk_Field{stack})]
> 
> \stoptext
> 
> I naively (as always ? ;) ) tried to make the "framed" interactive with
> \goto{\framed[background=cowbg,frame=off,offset=none,backgroundoffset=0pt]{{\fieldstack[stack]}}}[JS(Walk_Field{stack})]
> but failed in my attempt...
>
> Is there a way to solve this problem ?
>
Hi Renaud. How could you have missed this one? ;)

http://archive.contextgarden.net/thread/20060422.200921.44436476.en.html#20060422.200921.44436476

The trick is to use a PDF layer for the trigger button (else you get a
mess of stacking, interactive areas).

Greetings, Peter

> 
> Renaud
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> ntg-context mailing list
> ntg-context at ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: walkfield.tex
Url: http://www.ntg.nl/pipermail/ntg-context/attachments/20061017/ed94d0fe/attachment.asc 


More information about the ntg-context mailing list