From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/16588 Path: main.gmane.org!not-for-mail From: Willi Egger Newsgroups: gmane.comp.tex.context Subject: Re: first element in radio field Date: Tue, 05 Oct 2004 21:00:39 +0200 Sender: ntg-context-bounces@ntg.nl Message-ID: <4162EF57.6090904@boede.nl> References: <41613923.60307@gmx.net> <4162C97D.1040202@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1097002860 11699 80.91.229.6 (5 Oct 2004 19:01:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 5 Oct 2004 19:01:00 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Tue Oct 05 21:00:46 2004 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CEuYI-0007ne-00 for ; Tue, 05 Oct 2004 21:00:46 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id BF51A12791; Tue, 5 Oct 2004 21:00:45 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 31593-03; Tue, 5 Oct 2004 21:00:43 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id CDCF912784; Tue, 5 Oct 2004 21:00:42 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 09D0612784 for ; Tue, 5 Oct 2004 21:00:41 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 31577-03-3 for ; Tue, 5 Oct 2004 21:00:40 +0200 (CEST) Original-Received: from smtp-vbr12.xs4all.nl (unknown [194.109.24.32]) by ronja.ntg.nl (Postfix) with ESMTP id 1F7791276F for ; Tue, 5 Oct 2004 21:00:40 +0200 (CEST) Original-Received: from [192.168.0.1] (a80-126-172-1.adsl.xs4all.nl [80.126.172.1]) by smtp-vbr12.xs4all.nl (8.12.11/8.12.11) with ESMTP id i95J0dkT091531 for ; Tue, 5 Oct 2004 21:00:39 +0200 (CEST) (envelope-from w.egger@boede.nl) User-Agent: Mozilla Thunderbird 0.7 (Windows/20040616) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: <4162C97D.1040202@wxs.nl> X-Virus-Scanned: by XS4ALL Virus Scanner X-Virus-Scanned: by amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: by amavisd-new at ntg.nl Xref: main.gmane.org gmane.comp.tex.context:16588 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:16588 Hi Peter I tried your example wit the alpha version: This is pdfeTeXk, Version 3.141592-1.11a-2.1 (Web2c 7.5.2) ... ConTeXt ver: 2004.10.1 fmt: 2004.10.2 int: english mes: english Indentation as mentioned in your mail I can not see. -- however there are three things I do not really understand: 1. Though the frames are turned off for the unselected buttons, there are left and righthand lines along the buttonboxes. 2. When pointing on the first botton it turns correctly into the gray area but with changing the text into "InAreaX", but this text can not be selected in order to have it remaining. 3 When clicking on the second button the contents of the first butten changes into the value "NormalX" ... May be I do not get the idea of the radio-button ... Willi Hans Hagen wrote: > Peter Rolf wrote: > >> Hello all! >> >> This is my first attempt with fields, so I am not sure if this is a bug >> in context or my fault :) >> Anyway, the first element of my radio field is indented, while the >> following >> elements are ok. This is the case in horizontal and vertical arrangment. >> I added a minimal example... >> >> ConTeXt ver: 2004.10.1 fmt: 2004.10.3 int: english mes: german >> systems : pdfTeX version 111 -> please update >> systems : eTeX version 201 -> too old (bugs) > > > it looks ok here, do others have the same problem? > > (\showmakeup may not be that handy in such cases) > > > \noindent > > \vbox{% > > \field[Button1] > > \field[Button2] > > \field[Button3] > > } > > > may better be: > > \noindent \vbox{\forgetall ....} > > >> Greetings, >> >> Peter >> >> >> ------------------------------------------------------------------------ >> >> % interface=en output=pdftex >> \setupcolors[state=start] >> \setupinteraction[state=start] >> >> \starttext >> >> \showmakeup >> >> >> \def\Buttonheight{8mm} >> \def\Buttonwidth{40mm} >> >> \def\ButtonUnselected#1{\framed[frame=off,strut=no,offset=overlay,align={right,lohi}, >> >> width=\Buttonwidth,height=\Buttonheight] >> {\xii#1}} >> \def\ButtonSelected#1{\framed[strut=no,offset=overlay,width=\Buttonwidth,height=\Buttonheight, >> >> align={right,lohi},background=color,backgroundcolor=lightgray,frame=on] >> {\xii#1}} >> >> >> \definesymbol[TbuttonA] [{\ButtonUnselected{Normal}}] >> \definesymbol[TbuttonB] [{\ButtonSelected{InArea}}] >> \definesymbol[TbuttonC] [{\ButtonSelected{LMbutton}}] >> >> \definesymbol[TbuttonX] [{\ButtonUnselected{NormalX}}] >> \definesymbol[TbuttonY] [{\ButtonSelected{InAreaX}}] >> \definesymbol[TbuttonZ] [{\ButtonSelected{LMbuttonX}}] >> >> >> \setupfield[button] >> [width=40mm, >> height=8mm, >> align=right, >> distance=0mm, >> fieldoffset=0bp, >> offset=none, >> strut=no, >> depth=0pt, >> frame=off, >> leftframe=on, >> rightframe=on, >> ] >> >> \setupfield[radiofield][vertical] % same for horizontal+\hbox >> [align=right, >> distance=0mm, >> offset=none, >> strut=no, >> fieldoffset=0mm, >> frame=on, >> empty=yes, >> option=empty, >> ] >> >> \definefield[Radio1][radio][radiofield][Button1,Button2,Button3][Button1] >> >> \definesubfield[Button1] [button] >> [{TbuttonA,TbuttonB,TbuttonC},{TbuttonX,TbuttonY,TbuttonZ}] >> \definesubfield[Button2] [button] >> [{TbuttonA,TbuttonB,TbuttonC},{TbuttonX,TbuttonY,TbuttonZ}] >> \definesubfield[Button3] [button] >> [{TbuttonA,TbuttonB,TbuttonC},{TbuttonX,TbuttonY,TbuttonZ}] >> >> >> \noindent >> \vbox{% >> \field[Button1] >> \field[Button2] >> \field[Button3] >> } >> >> \stoptext >> >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> ntg-context mailing list >> ntg-context@ntg.nl >> http://www.ntg.nl/mailman/listinfo/ntg-context > > > > > ------------------------------------------------------------------------ > > _______________________________________________ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context