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: Wed, 14 Aug 2019 19:20:30 +0200	[thread overview]
Message-ID: <5fb2b05f-cd9c-2715-fb59-400c4fe734c4@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.

Last time I checked this (widget crap) there was an issue with acrobat 
and apearances ... I think that this model of parents and kids never 
really worked well and when one switches a page existing renderings get 
messed up. Irr some of these widgets (check boxes?) can't even have a 
custom visualization any more that is kept when one goes through pages.

I also have no clue to what extend all this is part of the 'standard'.

Anyway, if you can make a working example (uncompressed pdf) in official 
acrobat (not some other tool) that works in acrobat reader we can maybe 
figure out what todays demands are. Implementing stuff like this is 
trivial but the trial and error is painful.

Hans

(I only have acrobat X and reader for checking this.)


\nopdfcompression

\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]

\setupfield[textstuff][horizontal][width=50mm,height=15mm,offset=0pt,option={printable},offset=overlay]

\definefield[whatthree][text][textstuff]

\starttext

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

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

\stoptext


> Greetlings, Hraban
> 
>> Am 2019-08-05 um 10:03 schrieb Henning Hraban Ramm <texml@fiee.net>:
>>
>> Hi, coming back to an old form project I find that something changed WRT to form fields.
>>
>> For one, some fields appear smaller and shifted upwards – I managed to fix that with setups.
>>
>> What I can’t change is behaviour of radiobuttons: if I click one, all rbs of one group activate, and I can’t deactivate them any more.
>>
>> In my project all of the fields are duplicated on other pages, and while all other fields’ contents get copied, it doesn’t work for radiobuttons; my minimal example unfortunately can’t show that.
>>
>>
>> \setupinteraction[state=start]
>>
>> \setupfield[MMradio][
>>   option=printable,
>>   frame=overlay, corner=round,
>>   height=1em, width=1em,
>>   align=bottom,
>> ]
>>
>> \definefield[chooseTeX][radio][MMradio][rbContext,rbLatex,rbOther][rbContext]
>> \definesubfield[rbContext][][]
>> \definesubfield[rbLatex][][]
>> \definesubfield[rbOther][][]
>>
>> \starttext
>>
>> I want to use \field[rbContext] \CONTEXT\ \field[rbLatex] \LaTeX\ \field[rbOther] other.
>>
>> \page
>>
>> Just to confirm:
>> I want to use \field[rbContext] \CONTEXT\ \field[rbLatex] \LaTeX\ \field[rbOther] other.
>>
>>
>> \stoptext
>>
>>
>> Greetlings, Hraban
>> ___________________________________________________________________________________
>> 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
>> ___________________________________________________________________________________
> 
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
> 


-- 

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

  reply	other threads:[~2019-08-14 17:20 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   ` Hans Hagen [this message]
2019-08-15 20:40     ` radiobuttons Henning Hraban Ramm
2019-08-16 12:25       ` radiobuttons Henning Hraban Ramm
2019-08-15 17:25   ` radiobuttons Hans Hagen

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=5fb2b05f-cd9c-2715-fb59-400c4fe734c4@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).