From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/9386 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: interaction Date: Fri, 27 Sep 2002 09:57:19 +0200 Sender: owner-ntg-context@let.uu.nl Message-ID: <5.1.0.14.1.20020927092958.02e09be8@server-1> References: <5.1.0.14.1.20020926165052.0367fce8@server-1> <20020926123408.5068aa19.morawski@gmx.net> <5.1.0.14.1.20020926165052.0367fce8@server-1> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Trace: main.gmane.org 1035399715 2686 80.91.224.250 (23 Oct 2002 19:01:55 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 19:01:55 +0000 (UTC) Cc: ConTeXt Original-To: Jens-Uwe Morawski In-Reply-To: <20020926213955.70295240.morawski@gmx.net> Xref: main.gmane.org gmane.comp.tex.context:9386 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:9386 At 09:39 PM 9/26/2002 +0200, Jens-Uwe Morawski wrote: >On Thu, 26 Sep 2002 16:53:02 +0200 >Hans Hagen 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 -------------------------------------------------------------------------