ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Cc: "ConTeXt" <ntg-context@ntg.nl>
Subject: Re: PDF "dirty" trick
Date: Thu, 14 Sep 2000 11:47:23 +0200	[thread overview]
Message-ID: <3.0.6.32.20000914114723.0165d7f0@pop.wxs.nl> (raw)
In-Reply-To: <002601c01dc2$709be620$8f440e97@nuovo>

[-- Attachment #1: Type: text/plain, Size: 1842 bytes --]

At 10:36 PM 9/13/00 +0200, Giuseppe Bilotta (Oblomov) wrote:
>Hello,
>
>what I would like to obtain:
>
>in a PDF "interactive" document, I would like to have a pop-up window
>containing some typeset material (sort of a "minipage" in a pop-up window).
>
>how did i try to do it:
>
>I managed to create pop-up notes, but they can only contain "normal text",
>they are resizable by the user, etc.
>
>I managed to create xforms, but I can only place them in the document, not
>in a pop-up environment.
>
>Is it possible to obtain what I want? If yes, can somebody give me some
>clue?

This kind of problems is easy to solve on the one hand, since the
functionality is already there, but not always easy to use, since you need
to sync with the otr (output routine). But you're lucky. A quick demo in
tex, mp and widgets: 

% output=pdftex

\setuppapersize[S6][S6] 
\setupbodyfont[pos]
\setuplayout[width=middle,height=middle]
\setuptexttexts[\helpdata] 
\setupframedtexts[helptext][background=myframe]
\setupcolors[state=start]
\setupinteraction[state=start]
\setupbuttons[frame=off,background=myframe]

\defineoverlay[myframe][\uniqueMPgraphic{myframe}]

\startuniqueMPgraphic{myframe}
  path p ; p := unitsquare 
    xyscaled(\overlaywidth,\overlayheight) superellipsed .90 ;
  fill p withcolor .85yellow ; 
  draw p withpen pencircle scaled 2pt withcolor .85red ; 
\stopuniqueMPgraphic 

\starttext 

\starthelptext[test]
  Now, how many hidden features do you think that are present
  in \ConTeXt ? Actually this one is not that hidden, since 
  it's used in the flow chart module. This undocumented 
  feature is implemented in \type {core-hlp.tex}.
\stophelptext 

\input tufte 

\setpagehelpdata{test}

\setupfootertexts
  [{\button{show help}[JS(Vide_Fields{help:test})]\quad
    \button{hide all that help}[JS(Hide_Fields)]}]

\stoptext 

[-- Attachment #2: help.zip --]
[-- Type: application/zip, Size: 6046 bytes --]

[-- Attachment #3: Type: text/plain, Size: 370 bytes --]

-------------------------------------------------------------------------
                                                  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-09-14  9:47 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-09-13 20:36 Giuseppe Bilotta (Oblomov)
2000-09-14  9:47 ` Hans Hagen [this message]
2000-09-14 19:50   ` Giuseppe Bilotta (Oblomov)
2000-09-15  7:51     ` Hans Hagen
2000-09-15 17:58       ` Giuseppe Bilotta (Oblomov)
2000-09-17 15:54     ` Giuseppe Bilotta
2000-09-17 21:53       ` Hans Hagen
2000-09-18 14:31         ` Giuseppe Bilotta
2000-09-19  7:31           ` 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.20000914114723.0165d7f0@pop.wxs.nl \
    --to=pragma@wxs.nl \
    --cc=ntg-context@ntg.nl \
    /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).