ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* PDF Forms - expanding multi-line text fields
@ 2014-06-17 14:18 Michael Guravage
  0 siblings, 0 replies; only message in thread
From: Michael Guravage @ 2014-06-17 14:18 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 914 bytes --]

I am composing a document that contains pdf forms. Example code in "Widgets
Uncovered," shows how to specify the height and width of a multi-line text
field. Here is a small example:

\usemodule[fields]
\setupinteraction[state=start]
\setupfield [TextSetup]
[width=\textwidth,height=5em,background=screen,backgroundscreen=.97,frame=off]
\definefield [Block] [text] [TextSetup]
\starttext
   \field [Block]
\stoptext

In this example the height is 5em.  The field will scroll lines up when the
height of the lines typed exceeds the height of the field. Click outside
the field and the field displays the first n-lines that fit within its
height.

My question is, is it possible to tell the field to expand beyond its
initial field height to display all its lines?

A second less pressing question is, is it possible to tell lines to wrap
when they exceed the field width?


-- 
With kind regards,

Michael Guravage

[-- Attachment #1.2: Type: text/html, Size: 1175 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-06-17 14:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-17 14:18 PDF Forms - expanding multi-line text fields Michael Guravage

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).