ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Slow progress today
@ 1999-06-05  6:49 David Arnold
  1999-06-05 19:28 ` Hans Hagen
  0 siblings, 1 reply; 2+ messages in thread
From: David Arnold @ 1999-06-05  6:49 UTC (permalink / raw)


Hi,

Working in Up-001-s.pdf, I still can't get this to show anything. How do I
get the three green edit boxes shown in Up-001.pdf?

%output=pdf

\setupinteraction
  [state=start]

\setupcolors
  [state=start]

\definemainfield [MainMail][line][ShortLine][][darnold@northcoast.com]

\def\MPnormalbutton#1#2#3%
 {\startreusableMPgraphic{nb:#1:#2:#3}
   input mp-tool;
   pickup pencircle scaled 3;
   fill fullcircle xscaled #1 yscaled #2 withcolor (.8,.8,.8);
   draw fullcircle xscaled #1 yscaled #2 withcolor \MPcolor{#3};
 \stopreusableMPgraphic
 \reuseMPgraphic{nb:#1:#2:#3}}

\defineoverlay
 [normalbutton]
 [\MPnormalbutton\overlaywidth\overlayheight\overlaycolor]

\setupfield
 [LeftLine]
 [background=normalbutton,
  backgroundcolor=darkgreen,
  offset=2ex,
  height=7ex,
  width=.25\hsize,
  style=type,
  frame=off,
  align=left]
\setupfield
 [MiddleLine]
 [background=normalbutton,
  backgroundcolor=darkgreen,
  offset=2ex,
  height=7ex,
  width=.25\hsize,
  style=type,
  frame=off,
  align=middle]
\setupfield
 [RightLine]
 [background=normalbutton,
  backgroundcolor=darkgreen,
  offset=2ex,
  height=7ex,
  width=.25\hsize,
  style=type,
  frame=off,
  align=right]

\clonefield [MainMail] [LeftMail] [LeftLine]

\clonefield [MainMail] [MiddleMail] [MiddleLine]

\clonefield [MainMail] [RightMail] [RightLine]

\tracefieldstrue

\showfields[MainMail,LeftMail,MiddleMail,RightMail,LeftLine,MiddleLine,Right
Line]

\starttext

Hello, cruel world!

\field[LeftLine]

\stoptext


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

* Re: Slow progress today
  1999-06-05  6:49 Slow progress today David Arnold
@ 1999-06-05 19:28 ` Hans Hagen
  0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 1999-06-05 19:28 UTC (permalink / raw)
  Cc: ntg-context

David Arnold wrote:

> \starttext
> 
> Hello, cruel world!
> 
> \field[LeftLine]
> 
> \stoptext

You forgot to call for the parent field, which btw is not a \mainfield.
You also forgot to setup this parent.  The next source shows a way out
and also minimizes the setups. 

\setupinteraction
  [state=start]

\setupcolors
  [state=start]

\setupfield
  [DefaultLine,LeftLine,MiddleLine,RightLine]
  [background=color,
   backgroundcolor=yellow,
   offset=2ex,
   height=7ex,
   width=.25\hsize,
   style=type]

\setupfield [LeftLine]   [align=left]
\setupfield [MiddleLine] [align=middle]
\setupfield [RightLine]  [align=right]

\definefield [MainMail] [line]       [DefaultLine] [] [me@here.there]

\clonefield  [MainMail] [LeftMail]   [LeftLine]
\clonefield  [MainMail] [MiddleMail] [MiddleLine]
\clonefield  [MainMail] [RightMail]  [RightLine]

\starttext

  \field [MainMail]    \vfill
  \field [LeftMail]    \vfill
  \field [MiddleMail]  \vfill
  \field [RightMail]

\stoptext

Hans

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.nl
-----------------------------------------------------------------


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

end of thread, other threads:[~1999-06-05 19:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-06-05  6:49 Slow progress today David Arnold
1999-06-05 19:28 ` 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).