[NTG-context] Resizing multi-line fill-in field

Hans Hagen pragma at wxs.nl
Tue Jul 1 13:17:16 CEST 2014


On 7/1/2014 12:37 PM, Michael Guravage wrote:
> I am re-posting a previous question.
>
> Is it possible to increase the height of a multi-line fill-in field when
> the cumulative height of the lines typed into it exceeds the field's
> initial height?
>
> Here's an example where the field's initial height in 10em.
>
> \usemodule[fields]
> \setupinteraction[state=start]
> \setupfield
>    [TextSetup]
>    [width=\textwidth, height=10em, background=screen,
> backgroundscreen=.97, frame=off]
> \definefield [Block] [text] [TextSetup] [] [What's on your mind?]
>
> \starttext
>    \field [Block] [type here]
> \stoptext
>
> I have a situation where the amount of text typed into various fields
> will vary, but it is inappropriate to reserve a large block of space for
> each field.
>
> Any suggestions would be greatly appreciated.

You mean that the field in the pdf adapts itself? Maybe with some 
javascript magic but then it still doesn't adapt the following layout.

you can set n= to a large value to permits more than the standard 1000 chars


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------


More information about the ntg-context mailing list