Sorry about that, here are the examples: 1) alignment for the first field % begin of example \starttext \setupfield [ShortLine] [label,frame,horizontal] [offset=4pt,height=fit,framecolor=green,background=screen,backgroundscreen=.80] [height=18pt,width=80pt,align=middle,background=screen,backgroundscreen=.90,frame=off] [height=18pt,width=80pt,color=red,align=right,style=type,background=screen,backgroundscreen=.90,frame=off] \definefield [Email] [line] [ShortLine] [] [pragma at wxs.nl] \startalignment[middle] \field [Email] [your email] \par \field [Email] [your email] \stopalignment \stoptext % end of example (beta20110124.pdf: from beta 2011.01.24 as it should do, and beta20110125.pdf: since beta 2011.01.25 doesn't align) 2) Javascript example % begin of example \setupinteraction[state=start] \starttext \setupfield [ShortLine] [label,frame,horizontal] [offset=4pt,height=fit,framecolor=green,background=screen,backgroundscreen=.80] [height=18pt,width=80pt,align=middle,background=screen,backgroundscreen=.90,frame=off] [height=18pt,width=80pt,color=red,align=right,style=type,background=screen,backgroundscreen=.90,frame=off,regionin=JS(Initialize_TeX_Key),afterkey=JS(Convert_TeX_Key),validate=JS(Convert_TeX_String)] \definefield [Email] [line] [ShortLine] [] [pragma@wxs.nl] \field [Email] [your email] \stoptext % end of example (jsmkii.pdf: works with mkii - tested with adobe reader, jsmkiv.pdf: doesn't work with mkiv) Thanks, Adam ________________________________________ From: Hans Hagen [pragma@wxs.nl] Sent: 27 January 2011 17:07 To: mailing list for ConTeXt users Cc: Reviczky, Adam Subject: Re: [NTG-context] Widgets color option not working with Mark IV On 26-1-2011 2:58, Reviczky, Adam wrote:
it was not yet implemented (passing the info was, but not adding it to the pdf stream)
i uploaded a new beta
Thanks, color and fontsize works perfectly now!
Could you also have a look at whats going on with the alignment to the first field?
And since we're at it, I can't get the field+javascript working with mkiv, is that suppose to work? All I want to do is the accented glyphs in a text field, aka: \setupfield [TextSetup][...][...][...] [...., regionin=JS(Initialize_TeX_Key), afterkey=JS(Convert_TeX_Key), validate=JS(Convert_TeX_String)]
Works with mkii, but has no effect with mkiv.
we need a real example ----------------------------------------------------------------- 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 -----------------------------------------------------------------