[NTG-context] Widgets color option not working with Mark IV

Reviczky, Adam adam.reviczky at kcl.ac.uk
Thu Jan 27 22:42:27 CET 2011


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 at 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 at 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
-----------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: beta20110124.pdf
Type: application/pdf
Size: 6134 bytes
Desc: beta20110124.pdf
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20110127/e1a84b30/attachment-0004.pdf>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: beta20110125.pdf
Type: application/pdf
Size: 6169 bytes
Desc: beta20110125.pdf
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20110127/e1a84b30/attachment-0005.pdf>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jsmkii.pdf
Type: application/pdf
Size: 24548 bytes
Desc: jsmkii.pdf
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20110127/e1a84b30/attachment-0006.pdf>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jsmkiv.pdf
Type: application/pdf
Size: 7452 bytes
Desc: jsmkiv.pdf
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20110127/e1a84b30/attachment-0007.pdf>


More information about the ntg-context mailing list