ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <j.hagen@xs4all.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>,
	Henning Hraban Ramm <texml@fiee.net>
Subject: Re: radiobuttons
Date: Thu, 15 Aug 2019 19:25:22 +0200	[thread overview]
Message-ID: <b15e0415-182e-0bb1-3bbe-1d186ec2d77f@xs4all.nl> (raw)
In-Reply-To: <CC0E828D-CF42-4891-AD0B-758D4AA9C242@fiee.net>

On 8/13/2019 8:01 PM, Henning Hraban Ramm wrote:
> Regardless of my other mails, I’d appreciate to have this bug fixed.
I wasted the whole day on trying all kind of tricks and comparing pdf's 
made with acronbat and context etc etc just to find out that the 
preference is the problem ...

   forms -> highlight color -> show border hover color

it badly interfering with these widgets ... there seems to be no way to 
turn that off (forms made with acrobat suffer a bit less because they 
use a funny mix of appearances and border settings and ... because they 
make these buttons from dingbats (i think)

anyway, it's bad in the latest reader as well as in acrobat x which 
shows it's an old issue and as it's that old one can fear it has become 
a feature ... (of that no one cares)

so, the only solution seems to be to check the prefs

(mupdf is doing it right)

Hans

--- test file ---

\setupinteraction
   [state=start]

\definesymbol[yes][1]
\definesymbol[nop][0]

\setupfield[whatever][width=20mm,height=20mm,frame=off]

\definefield[what][radio][whatever][whatone,whattwo][whatone]
\definesubfield[whatone][][yes,nop]
\definesubfield[whattwo][][yes,nop]

\startuniqueMPgraphic{0}
     fill fullcircle scaled 1cm withcolor red ;
\stopuniqueMPgraphic
\startuniqueMPgraphic{1}
     fill fullcircle scaled 1cm withcolor green ;
\stopuniqueMPgraphic

\definesymbol[YES][\uniqueMPgraphic{1}]
\definesymbol[NOP][\uniqueMPgraphic{0}]

\setupfield[WHATEVER][width=20mm,height=20mm,frame=off]

\definefield[WHAT][radio][WHATEVER][WHATONE,WHATTWO][WHATONE]
\definesubfield[WHATONE][][YES,NOP]
\definesubfield[WHATTWO][][YES,NOP]

\starttext

     \startTEXpage[offset=2cm]
         \field[whatone]\space\field[whattwo]

         \field[WHATONE]\space\field[WHATTWO]

         \field[WHATONE]\space\field[WHATTWO]
     \stopTEXpage

     \startTEXpage[offset=2cm]
         \field[whatone]\space\field[whattwo]

         \field[WHATONE]\space\field[WHATTWO]

         \field[WHATONE]\space\field[WHATTWO]
     \stopTEXpage

\stoptext


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

      parent reply	other threads:[~2019-08-15 17:25 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-05  8:03 radiobuttons Henning Hraban Ramm
2019-08-05 13:10 ` radiobuttons Henning Hraban Ramm
2019-08-05 15:07   ` radiobuttons and other widgets Henning Hraban Ramm
2019-08-14 20:09   ` radiobuttons Wolfgang Schuster
2019-08-13 18:01 ` radiobuttons Henning Hraban Ramm
2019-08-14 17:20   ` radiobuttons Hans Hagen
2019-08-15 20:40     ` radiobuttons Henning Hraban Ramm
2019-08-16 12:25       ` radiobuttons Henning Hraban Ramm
2019-08-15 17:25   ` Hans Hagen [this message]

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=b15e0415-182e-0bb1-3bbe-1d186ec2d77f@xs4all.nl \
    --to=j.hagen@xs4all.nl \
    --cc=ntg-context@ntg.nl \
    --cc=texml@fiee.net \
    /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).