From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/16586 Path: main.gmane.org!not-for-mail From: Peter Rolf Newsgroups: gmane.comp.tex.context Subject: first element in radio field Date: Mon, 04 Oct 2004 13:50:59 +0200 Sender: ntg-context-bounces@ntg.nl Message-ID: <41613923.60307@gmx.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------060502030608040505000700" X-Trace: sea.gmane.org 1096964291 28879 80.91.229.6 (5 Oct 2004 08:18:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 5 Oct 2004 08:18:11 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Tue Oct 05 10:17:59 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 1CEkWF-0006tk-00 for ; Tue, 05 Oct 2004 10:17:59 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E791312789; Tue, 5 Oct 2004 10:17:50 +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 26013-05; Tue, 5 Oct 2004 10:17:47 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 993661277C; Tue, 5 Oct 2004 10:17:47 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 68C641278B for ; Mon, 4 Oct 2004 13:49:54 +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 21570-02 for ; Mon, 4 Oct 2004 13:49:53 +0200 (CEST) Original-Received: from mail.gmx.net (unknown [213.165.64.20]) by ronja.ntg.nl (Postfix) with SMTP id 8EE8612789 for ; Mon, 4 Oct 2004 13:49:53 +0200 (CEST) Original-Received: (qmail 21774 invoked by uid 65534); 4 Oct 2004 11:49:51 -0000 Original-Received: from lips-d9b8cb20.pool.mediaWays.net (EHLO [217.184.203.32]) (217.184.203.32) by mail.gmx.net (mp006) with SMTP; 04 Oct 2004 13:49:51 +0200 X-Authenticated: #24293357 User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913) X-Accept-Language: en-us, en Original-To: ntg-context@ntg.nl X-Enigmail-Version: 0.86.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime X-Virus-Scanned: by amavisd-new at ntg.nl X-Mailman-Approved-At: Tue, 05 Oct 2004 10:17:46 +0200 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:16586 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:16586 This is a multi-part message in MIME format. --------------060502030608040505000700 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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) Greetings, Peter --------------060502030608040505000700 Content-Type: text/plain; name="Radio.tex" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="Radio.tex" % 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 --------------060502030608040505000700 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context --------------060502030608040505000700--