From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/31825 Path: news.gmane.org!not-for-mail From: Peter Rolf Newsgroups: gmane.comp.tex.context Subject: beta: bug with transparent colors in fields Date: Mon, 13 Nov 2006 16:52:17 +0100 Message-ID: <455894B1.6090809@gmx.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------070601080605070706070202" X-Trace: sea.gmane.org 1163433215 32331 80.91.229.2 (13 Nov 2006 15:53:35 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 13 Nov 2006 15:53:35 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Mon Nov 13 16:53:33 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1Gje7c-0007Bh-2H for gctc-ntg-context-518@m.gmane.org; Mon, 13 Nov 2006 16:53:20 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 114D51FD79; Mon, 13 Nov 2006 16:53:16 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 24708-01-3; Mon, 13 Nov 2006 16:53:08 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1AD3F1FD7B; Mon, 13 Nov 2006 16:53:08 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 767EB1FD7B for ; Mon, 13 Nov 2006 16:52:58 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 24709-01-2 for ; Mon, 13 Nov 2006 16:52:44 +0100 (CET) Original-Received: from mail.gmx.net (mail.gmx.de [213.165.64.20]) by ronja.ntg.nl (Postfix) with SMTP id E6BDB1FD8E for ; Mon, 13 Nov 2006 16:52:37 +0100 (CET) Original-Received: (qmail invoked by alias); 13 Nov 2006 15:52:39 -0000 Original-Received: from i577B982C.versanet.de (EHLO [192.168.1.3]) [87.123.152.44] by mail.gmx.net (mp029) with SMTP; 13 Nov 2006 16:52:39 +0100 X-Authenticated: #24293357 User-Agent: Thunderbird 1.5.0.8 (Windows/20061025) Original-To: mailing list for ConTeXt users X-Enigmail-Version: 0.94.0.0 X-Y-GMX-Trusted: 0 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 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 X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:31825 Archived-At: This is a multi-part message in MIME format. --------------070601080605070706070202 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi Hans, the support of transparent colors in fields seems to be broken (beta 03.11.06). The attached example works with a non transparent backgroundcolor, but breaks with a transparent one. Same behaviour on ConTeXt Live. \definecolor [notebackgroundcolor] % [s=.85] [s=1,a=1,t=.9] There is another problem with field activation (not in this example). When the doc opens, the fields (region in/out) are kind of inactive. Normally a tooltip note is shown/hidden, if the area is entered/left. Only after "activating" the fields by pressing "R" and "H" in Acrobat, they become alive. After that they work as expected. I am still working on a minimal example for this case. Greetings, Peter --------------070601080605070706070202 Content-Type: text/plain; name="note.tex" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="note.tex" \setupoutput[pdf] \setuppapersize[S6][S6] \startJSpreamble {Notes} used now var lastNote = "" ; function Show_Note ( Name ) { if (Name != lastNote) { Hide_Note () ; var v = this.getField(Name) ; if (v) { console.println("Show Note: " + Name) ; v.display = display.visible ; v.readonly = false ; % v.richText = true ; % v.multiline = true ; % v.lineWidth = 3 ; % v.rect = [0, 0, 200, 150] ; this.dirty = false ; lastNote = Name } } else {Hide_Note () ;} } function Hide_Note ( ) { if (lastNote != "") { var v = this.getField(lastNote) ; if (v) { console.println("Hide Note: " + lastNote) ; v.display = display.hidden ; v.readonly = true ; this.dirty = false } } lastNote = "" } function Set_Tooltip ( Name ) { if (Name != "") { var v= this.getField(Name) ; if (v) { v.userName="This may help..." ; } } } \stopJSpreamble \newcounter\AnotherNote \def\SomeNote#1#2% {\hbox {\doglobal\increment\AnotherNote \definesymbol[note:\AnotherNote:on][\WhatANote{#2}]% % \setupfield[notes][offset=overlay,frame=off,option={readonly,hidden}] % this confuses acrobat, probably some interference bug, I spent too much time on that \setupfield[notes][offset=overlay,frame=off,option={readonly,hidden},% % regionin=JS(Hide_Note), regionout=JS(Hide_Note), username={Test!}, % clickin=JS(Hide_Note), % clickout=JS(Hide_Note), ] \definefield[note:\AnotherNote][check][notes][note:\AnotherNote:on,note:\AnotherNote:on][note:\AnotherNote:on]% \doifreferencefoundelse{note:\AnotherNote} {\setlayer[notes][page=\currentrealreference]{\fitfield[note:\AnotherNote]}} {\setlayer[notes]{\fitfield[note:\AnotherNote]}}% \pagereference[note:\AnotherNote]\goto{#1}[JS(Show_Note{note:\AnotherNote})]}} \setupinteraction [state=start, openpageaction=JS(Hide_Note), closepageaction=JS(Hide_Note)] \definereference[CloseNote][JS(Hide_Note)] \setupfootertexts[{\goto{Close Note}[CloseNote]}][] \setupcolors [state=start] \definecolor [notebackgroundcolor] % [s=.85] [s=1,a=1,t=.9] \defineframedtext [WhatANote] [bodyfont=9pt, background=color, backgroundcolor=notebackgroundcolor, width=.4\textwidth, height=fit, align=normal] \definelayer [notes] [width=\paperwidth, height=\paperheight, preset=rightbottom, offset=1cm] \setupbackgrounds [page] [background={notes,foreground}] \starttext \startbuffer \input ward \SomeNote{[[ward]]} {\input ward \relax} \input ward \blank \input knuth \SomeNote{[[knuth]]} {\input knuth \relax} \input knuth \blank \input tufte \SomeNote{[[tufte]]} {\input tufte \relax} \input tufte \blank \input bryson \SomeNote{[[bryson]]}{\input bryson\relax} \input bryson \blank \stopbuffer \dorecurse{10}{\getbuffer} \stoptext --------------070601080605070706070202 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context --------------070601080605070706070202--