At 09:39 PM 9/26/2002 +0200, Jens-Uwe Morawski wrote:
>On Thu, 26 Sep 2002 16:53:02 +0200
>Hans Hagen <[EMAIL PROTECTED]> 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 | [EMAIL PROTECTED]
                       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 via email to