ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Reviczky, Adam" <adam.reviczky@kcl.ac.uk>
To: "ntg-context@ntg.nl" <ntg-context@ntg.nl>
Subject: Widgets color option not working with Mark IV
Date: Tue, 7 Dec 2010 12:59:41 +0000	[thread overview]
Message-ID: <7B4626C28B06A7418E938BF73D6DEE18F9E71DB133@KCL-MAIL05.kclad.ds.kcl.ac.uk> (raw)

[-- Attachment #1: Type: text/plain, Size: 1182 bytes --]

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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: widgets.tex --]
[-- Type: text/x-tex; name="widgets.tex", Size: 457 bytes --]

\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][][pragma@wxs.nl]
\field[Email][your email]
\stoptext


[-- Attachment #3: MarkII.pdf --]
[-- Type: application/pdf, Size: 23850 bytes --]

[-- Attachment #4: MarkIV.pdf --]
[-- Type: application/pdf, Size: 5999 bytes --]

[-- Attachment #5: Type: text/plain, Size: 486 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
___________________________________________________________________________________

             reply	other threads:[~2010-12-07 12:59 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-07 12:59 Reviczky, Adam [this message]
2011-01-26  0:49 Reviczky, Adam
2011-01-26  9:45 ` Hans Hagen
2011-01-26 10:21 ` Hans Hagen
2011-01-26 13:58 Reviczky, Adam
2011-01-27 17:07 ` Hans Hagen
2011-01-27 21:42   ` Reviczky, Adam
2011-01-29  5:09   ` Reviczky, Adam
2011-01-29  9:42     ` Hans Hagen
2011-01-30  0:28       ` Reviczky, Adam
2011-01-30 12:48         ` Hans Hagen
2011-01-31  1:16           ` Reviczky, Adam

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7B4626C28B06A7418E938BF73D6DEE18F9E71DB133@KCL-MAIL05.kclad.ds.kcl.ac.uk \
    --to=adam.reviczky@kcl.ac.uk \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).