ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Matthew Baker <Matthew.Baker@gmd.de>
Subject: Fixed width form field
Date: Tue, 12 Oct 1999 16:09:54 +0200	[thread overview]
Message-ID: <Pine.SGI.4.04.9910121603440.17283-100000@urizen> (raw)

Hallo,

I want to design a form in which fields appear in table cells so that they
line up correctly.  In order to deal with baseline alignment and things, I
use the label field in the form.  I have a macro like

\def\putfield[#1]#2{\hbox{\field[#1][#2]}}

I would like the field to extend to fill the table cell (which I set to a
fixed size with the w table format option).  How can I set the field up to
fit to this size?  I can't simple set the field width to the desired size
because I don't know how long the label is.  I'd like ideally to set the
width of the frame around the field to something fixed and then set the
label and field widths to "fit", eg

\setupfield [MyFieldSetup] [frame, label, horizontal] [width=60mm]
  [width=fit] [width=fit]

But that doesn't work.  Any way to do this?

- Matt

--
Dr. Matthew Baker           matthew.baker@gmd.de
GMD - FIT.MMK               http://fit.gmd.de/hci/pages/matthew.baker.html


             reply	other threads:[~1999-10-12 14:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-10-12 14:09 Matthew Baker [this message]
1999-10-12 17:35 ` Hans Hagen
1999-10-15 13:16   ` Matthew Baker

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=Pine.SGI.4.04.9910121603440.17283-100000@urizen \
    --to=matthew.baker@gmd.de \
    /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).