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: interaction
Date: Fri, 27 Sep 2002 09:57:19 +0200	[thread overview]
Message-ID: <5.1.0.14.1.20020927092958.02e09be8@server-1> (raw)
In-Reply-To: <20020926213955.70295240.morawski@gmx.net>

At 09:39 PM 9/26/2002 +0200, Jens-Uwe Morawski wrote:
>On Thu, 26 Sep 2002 16:53:02 +0200
>Hans Hagen <pragma@wxs.nl> wrote:
>
> > At 12:34 PM 9/26/2002 +0200, Jens-Uwe Morawski wrote:
>
>Ahoi Hans,
>
> > >(1) How can i place an interaction-menu in the right-edge, but
> > >     instead to place it vertically in the text-area i would like
> > >     to place it in the head- and/or foot-area.
> >
> > \setuplayout[top=1cm]
> >
> > \startinteractionmenu[top]
> > ....
>
>Sorry Hans, i think my question was misleading.
>
>AFAIK a page provides following fields:
>
>        leftedge  leftmargin  text  rightmargin  rightedge
>       ----------------------------------------------------
>top   |   *     |    *      | 3/5|     *       |   *     |
>       ----------------------------------------------------
>head  |   *     |           |    |             |   *     |
>       ----------------------------------------------------
>text  |  1/3    |           |    |             |  5/3    |
>       ----------------------------------------------------
>foot  |   *     |           |    |             |   *     |
>       ----------------------------------------------------
>bottom|   *     |    *      | 3/1|     *       |   *     |
>       ----------------------------------------------------
>
>\startinteractionmenu[top] places in 3/5
>   [right] in 5/3, [bottom] in 3/1
>
>But how can place an interaction-menu in one of the fields
>  marked with a '*'? Normally these are free.
>I'm looking for something like:
>   \startinteractionmenu[right,head]
>Is this available?

no, although there is a not yet interfaced command \interactionmenu[...] 
that can be used to call up a menu

\startcommands             dutch                     english
                            german                    czech
                            italian                   romanian

            interactiemenu: interactiemenu            interactionmenu
                            interaktionsmenue         interaktivnimenu
                            menuinterattivo           meniuinteractiune

\stopcommands

now, at your own risk, you can try:

\unprotect

\def\defineinteractionmenuclass
   {\dodoubleargument\dodefineinteractionmenuclass}

\def\dodefineinteractionmenuclass[#1][#2]% tag hori|veri
   {\doifelse{#2}\v!vertikaal
      {\setvalue{\??am\??am\c!menu#1}%
         {\vertikaalinteractiemenu
            {#1}{\getvalue{\??am#1\c!breedte}}\c!voor\c!na}}
      {\setvalue{\??am\??am\c!menu#1}%
         {\horizontaalinteractiemenu
            {#1}{\getvalue{\??am#1\c!hoogte}}\c!links\c!rechts}}}

\protect

with

\setupinteraction[menu=on,state=start]

\defineinteractionmenuclass[test]   [vertical]
\defineinteractionmenuclass[another][horizontal]

\defineinteractionmenu[test]   [left][state=start,width=4cm]
\defineinteractionmenu[another][top] [state=start,height=1cm]

\startinteractionmenu[test]
   \but [firstpage] test-a \\
   \but [nextpage]  test-b \\
\stopinteractionmenu

\startinteractionmenu[another]
   \but [firstpage] test-a \\
   \but [nextpage]  test-b \\
\stopinteractionmenu

\setupheadertexts[{\interactiemenu[another]}]

\starttext

test \interactionmenu[test] \page
test \interactionmenu[test] \page

\stoptext

Hans
-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       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
-------------------------------------------------------------------------
                        information: http://www.pragma-ade.com/roadmap.pdf
                     documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------


  reply	other threads:[~2002-09-27  7:57 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-26 10:34 interaction Jens-Uwe Morawski
2002-09-26 14:53 ` interaction Hans Hagen
2002-09-26 19:39   ` interaction Jens-Uwe Morawski
2002-09-27  7:57     ` Hans Hagen [this message]
2002-09-26 17:28 ` interaction Henning Hraban Ramm
2002-09-27 10:21   ` interaction Jens-Uwe Morawski
2004-02-01  4:43 (no subject) Vit Zyka
2004-02-02 11:50 ` Giuseppe Bilotta
2004-02-03 21:49   ` Vit Zyka
2004-02-04 20:39     ` interaction Thomas Lohmann
2018-09-18 21:26 interaction Hans Hagen
2018-09-21 13:50 ` interaction Tomas Hala
2018-09-21 16:06   ` interaction Hans Hagen
2018-09-24 11:59     ` interaction Pablo Rodriguez
2018-09-24 12:08       ` interaction Hans Hagen
2018-09-24 12:39         ` interaction Pablo Rodriguez
2018-09-24 13:48           ` interaction Hans Hagen
2018-09-21 14:40 ` interaction Henning Hraban Ramm

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=5.1.0.14.1.20020927092958.02e09be8@server-1 \
    --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).