From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/75320 Path: news.gmane.org!not-for-mail From: "Mikael P. Sundqvist" Newsgroups: gmane.comp.tex.context Subject: Re: Widgets getting check marks instead of colors when the next one is clicked. Date: Fri, 23 Mar 2012 19:54:31 +0100 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1332528887 17041 80.91.229.3 (23 Mar 2012 18:54:47 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 23 Mar 2012 18:54:47 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Mar 23 19:54:42 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SB9dJ-0008VI-7n for gctc-ntg-context-518@m.gmane.org; Fri, 23 Mar 2012 19:54:41 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8721610230; Fri, 23 Mar 2012 19:54:40 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id tHk4rnuRcsqj; Fri, 23 Mar 2012 19:54:35 +0100 (CET) Original-Received: from [127.0.0.1] (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0F37A101F3; Fri, 23 Mar 2012 19:54:35 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6E1CB101F3 for ; Fri, 23 Mar 2012 19:54:34 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id bP3jDGlOGvhN for ; Fri, 23 Mar 2012 19:54:33 +0100 (CET) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by balder.ntg.nl (Postfix) with ESMTP id B339C10194 for ; Fri, 23 Mar 2012 19:54:33 +0100 (CET) Original-Received: from mail-qa0-f48.google.com (mail-qa0-f48.google.com [209.85.216.48]) by filter4-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q2NIsWW0026190 for ; Fri, 23 Mar 2012 19:54:32 +0100 Original-Received: by qam2 with SMTP id 2so1288140qam.14 for ; Fri, 23 Mar 2012 11:54:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=TNeXUY5sixZr20rIGesRODm0Q+oJYCyEzQCDRnWYw3k=; b=jOhfW9qJh4ceIsZ+qi5W9sQECn3E4mMAHJU19ZFS77YkpHp2kjYVTJCWGMZgNZJJbL B0CQuBLi2YtAs5AphEmlOba+f9YLIHV6b26EuCy1tBrT2lZ47cn0b+PppZNJUHljR0DU JuSax183QZnjCrjBdPzdNPH077PrM09wx24zlOQTWsyUOrRPgu8/M3H+DwGfHnR2kMg4 LILqKXDxIvrwJEIpa5YNE0HQzdRsoB6MlzwkvEUW8PJq9IBW59TaY0fcEV/yrnxdr8UR FNM9ssn+cAeg13yAr5luNdlRq08MgqINokiq36tHAVgrL6kI//Wxpxeuus/eIGzFknqP 4uyg== Original-Received: by 10.229.136.208 with SMTP id s16mr5053187qct.35.1332528871926; Fri, 23 Mar 2012 11:54:31 -0700 (PDT) Original-Received: by 10.229.39.82 with HTTP; Fri, 23 Mar 2012 11:54:31 -0700 (PDT) In-Reply-To: X-Bayes-Prob: 0.0183 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.216.48; country=US; latitude=38.0000; longitude=-97.0000; http://maps.google.com/maps?q=38.0000,-97.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0VGN6Swuv - 2390353f1178 - 20120323 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.220 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:75320 Archived-At: On Fri, Mar 23, 2012 at 1:33 PM, Mikael P. Sundqvist wro= te: > Dear list, > > 1) Look at the output of this simple document (attached as test.pdf). > If I click the first one I get a green square as I want. But when I > click the second one the first one loses its color and get a check > mark instead (tested on linux and windows). Is there anything I can do > to keep the green square when the red is clicked? > > %%% BEGINNING OF FILE > \setupinteraction[state=3Dstart,color=3Ddarkblue] > > \setupfield[setup 3] > =A0 =A0 =A0 =A0[width=3D1.2ex, height=3D1.2ex, > =A0 =A0 =A0 =A0rulethickness=3D1pt, framecolor=3Ddarkblue,offset=3Doverla= y] > > \definesymbol [ryes] > [{\framed[frame=3Doff,width=3D2em,height=3D2em,background=3Dcolor,backgro= undcolor=3Ddarkgreen]{ > }}] > \definesymbol [rno] [] > \definesymbol [wyes] > [{\framed[frame=3Doff,width=3D2em,height=3D2em,background=3Dcolor,backgro= undcolor=3Ddarkred]{ > }}] > \definesymbol [wno] [] > > \definefield [rcheckme][check] [setup 3] [ryes,rno] [rno] > \definefield [wcheckme][check] [setup 3] [wyes,wno] [wno] > > > \starttext > \field[rcheckme] Germany is a country in Europe. > > \field[wcheckme] All germans are men. > > \goto{Reset}[ResetForm] > \stoptext > %%% END OF FILE > > 2) In the example file above I also use ResetForm to clear all the > checks. Is there a way to get a button/link such that when I click it > all squares are "checked" (in my case colored red or green)? > > Best regards, Mikael > > PS If this method is outdated and there is a better one, please do not > hesitate to tell me. Hm, I now tried the file and the first problem is gone in acrobat reader at home (linux, acrobat reader version 9.1.2). In other words, the colors do stay here after checking other boxes. If I remember correctly I had ver 9.2 at the linux machine at work. About the version for Windows I do not remember. Ah, I read Hans' (thanks!) reply as I type this and so it seems to be a problem with later versions of Acrobat reader, which explains why it works at home but not at work. Maybe I should simply come up with another solutions to do these small tests for the students, as I cannot be sure what version they are using... Best regards, Mikael ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________