From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/3013 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: \button does not appear Date: Tue, 17 Oct 2000 17:59:01 +0200 Sender: owner-ntg-context@let.uu.nl Message-ID: <3.0.6.32.20001017175901.0134ea50@pop.wxs.nl> References: <200010171423.QAA09703@bar.loria.fr> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: main.gmane.org 1035393777 13526 80.91.224.250 (23 Oct 2002 17:22:57 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 17:22:57 +0000 (UTC) Cc: ntg-context@ntg.nl, roegel@lorraine.loria.fr (Denis B. Roegel) Original-To: "Denis B. Roegel" In-Reply-To: <200010171423.QAA09703@bar.loria.fr> Xref: main.gmane.org gmane.comp.tex.context:3013 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:3013 At 04:23 PM 10/17/00 +0200, Denis B. Roegel wrote: >On page 76 of the metafun manual, there is an example >with \button. But when I try to compile the following >file, I can see no button. Actually, no dvi file is generated. >What am I missing? > >I am using the TL5 + Sep. 21 context. > >Thanks, > >Denis > >\setupcolors[state=start] >\starttext > >\def\MyGraphic% > {\startreusableMPgraphic{name:\overlaywidth:\overlayheight} > path p ; p := unitsquare > xscaled \overlaywidth yscaled \overlayheight ; > fill p withcolor .625yellow ; > draw p withcolor .625red ; > \stopreusableMPgraphic > \reuseMPgraphic{name:\overlaywidth:\overlayheight}} > >\defineoverlay[my graphic][\MyGraphic] >\button[background=my graphic,frame=off]{Go Home}[firstpage] \startreusableMPgraphic{xxx} .... \stopreusableMPgraphic \defineoverlay[my graphic][\reuseMPgraphic{xxx}] etc etc is more convenient the buttons will show up when you say: \setupinteraction[state=start] ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE 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 -------------------------------------------------------------------------