ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Cc: ntg-context@ntg.nl, roegel@lorraine.loria.fr (Denis B. Roegel)
Subject: Re: \button does not appear
Date: Tue, 17 Oct 2000 17:59:01 +0200	[thread overview]
Message-ID: <3.0.6.32.20001017175901.0134ea50@pop.wxs.nl> (raw)
In-Reply-To: <200010171423.QAA09703@bar.loria.fr>

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
-------------------------------------------------------------------------


  reply	other threads:[~2000-10-17 15:59 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-10-17 14:23 Denis B. Roegel
2000-10-17 15:59 ` Hans Hagen [this message]
2000-10-17 20:58   ` Denis B. Roegel
2000-10-17 23:06 ` how do I cancel \setupframed? Denis B. Roegel
2000-10-18  8:11   ` Hans Hagen
2000-10-18  8:26   ` Hans Hagen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3.0.6.32.20001017175901.0134ea50@pop.wxs.nl \
    --to=pragma@wxs.nl \
    --cc=ntg-context@ntg.nl \
    --cc=roegel@lorraine.loria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).