Hi

The color option in setupfield for widgets is ignored and always gives me black 
text with Mark IV (see: MarkIV.pdf compiled with a recent ConTeXt minimals).
The attached example (widgets.tex) with Mark II however makes the correct 
color, in this case red, as you can see in (MarkII.pdf) compiled on 
live.contextgarden.net (aka with Mark II).

The macro in question is:
---
\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]
% color=name does not work with MARK IV
[height=18pt,width=80pt,color=red,align=right,style=type,background=screen,backgroundscreen=.90,frame=off]
---


On the same subject, is it possible in any way to make a custom style for the 
entry form text? The style option of setupfield just allows: "normal bold 
slanted boldslanted type", but I would like to change the size of the 
text-entry to eg. tfb or tfc. (By giving size commands to the style option the 
first form entry changes to that size but it reverts on the subsequent entries 
to the normal size.)

Regards
Adam
\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]
\definefield[email][line][shortline][][pra...@wxs.nl]
\field[Email][your email]
\stoptext

Attachment: MarkII.pdf
Description: MarkII.pdf

Attachment: MarkIV.pdf
Description: MarkIV.pdf

___________________________________________________________________________________
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
___________________________________________________________________________________

Reply via email to