From: Hans Hagen <pragma@wxs.nl>
Subject: Re: first element in radio field
Date: Tue, 05 Oct 2004 18:19:09 +0200 [thread overview]
Message-ID: <4162C97D.1040202@wxs.nl> (raw)
In-Reply-To: <41613923.60307@gmx.net>
[-- Attachment #1: Type: text/plain, Size: 3274 bytes --]
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
--
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
[-- Attachment #2: test.pdf --]
[-- Type: application/pdf, Size: 16039 bytes --]
[-- Attachment #3: Type: text/plain, Size: 139 bytes --]
_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
next prev parent reply other threads:[~2004-10-05 16:19 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-04 11:50 Peter Rolf
2004-10-05 16:19 ` Hans Hagen [this message]
2004-10-05 19:00 ` Willi Egger
2004-10-06 12:52 Peter Rolf
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=4162C97D.1040202@wxs.nl \
--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).