ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \button does not appear
@ 2000-10-17 14:23 Denis B. Roegel
  2000-10-17 15:59 ` Hans Hagen
  2000-10-17 23:06 ` how do I cancel \setupframed? Denis B. Roegel
  0 siblings, 2 replies; 6+ messages in thread
From: Denis B. Roegel @ 2000-10-17 14:23 UTC (permalink / raw)
  Cc: Denis B. Roegel

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]

\stoptext


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: \button does not appear
  2000-10-17 14:23 \button does not appear Denis B. Roegel
@ 2000-10-17 15:59 ` Hans Hagen
  2000-10-17 20:58   ` Denis B. Roegel
  2000-10-17 23:06 ` how do I cancel \setupframed? Denis B. Roegel
  1 sibling, 1 reply; 6+ messages in thread
From: Hans Hagen @ 2000-10-17 15:59 UTC (permalink / raw)
  Cc: ntg-context, Denis B. Roegel

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: \button does not appear
  2000-10-17 15:59 ` Hans Hagen
@ 2000-10-17 20:58   ` Denis B. Roegel
  0 siblings, 0 replies; 6+ messages in thread
From: Denis B. Roegel @ 2000-10-17 20:58 UTC (permalink / raw)
  Cc: Denis B. Roegel, ntg-context, Denis B. Roegel

`Hans Hagen' wrote
>   
>   \setupinteraction[state=start]

That's the line I was missing!

Thanks,

Denis


^ permalink raw reply	[flat|nested] 6+ messages in thread

* how do I cancel \setupframed?
  2000-10-17 14:23 \button does not appear Denis B. Roegel
  2000-10-17 15:59 ` Hans Hagen
@ 2000-10-17 23:06 ` Denis B. Roegel
  2000-10-18  8:11   ` Hans Hagen
  2000-10-18  8:26   ` Hans Hagen
  1 sibling, 2 replies; 6+ messages in thread
From: Denis B. Roegel @ 2000-10-17 23:06 UTC (permalink / raw)
  Cc: ntg-context, Denis B. Roegel

If I do at some point

\setupframed
  [width=.3\textwidth,
   background=demo circle]

how do I cancel it for instance when I want to try
the following which puts a `demo circle' behind each word...

\def\processword#1{\noindent\framed{#1}\space}

\processwords
{As you may know, \TeX's ambassador is a lion, while \METAFONT{} is
represented by a lioness. It is still unclear if they have a relationship,
but if so, and if a baby is born, may it enjoy \METAFUN.}

?

Thanks,

Denis

PS. By the way, at the beginning of section 4.5 in the metafun manual
(page 89), the example for \processwords is missing, and the superellipsed
text appears twice.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: how do I cancel \setupframed?
  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
  1 sibling, 0 replies; 6+ messages in thread
From: Hans Hagen @ 2000-10-18  8:11 UTC (permalink / raw)
  Cc: Denis B. Roegel, ntg-context, Denis B. Roegel

At 01:06 AM 10/18/00 +0200, Denis B. Roegel wrote:
>If I do at some point
>
>\setupframed
>  [width=.3\textwidth,
>   background=demo circle]
>
>how do I cancel it for instance when I want to try
>the following which puts a `demo circle' behind each word...

\setupframed[background=]

So, just set it to empty. (In most cases, \setupframed will be used grouped.)

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: how do I cancel \setupframed?
  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
  1 sibling, 0 replies; 6+ messages in thread
From: Hans Hagen @ 2000-10-18  8:26 UTC (permalink / raw)
  Cc: ntg-context, Denis B. Roegel

At 01:06 AM 10/18/00 +0200, Denis B. Roegel wrote:

>PS. By the way, at the beginning of section 4.5 in the metafun manual
>(page 89), the example for \processwords is missing, and the superellipsed
>text appears twice.

Right, I call up the wrong buffer (page 105 now). 

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2000-10-18  8:26 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-10-17 14:23 \button does not appear Denis B. Roegel
2000-10-17 15:59 ` Hans Hagen
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

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