From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/6903 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: buttons Date: Fri, 15 Feb 2002 23:53:20 +0100 Sender: owner-ntg-context@let.uu.nl Message-ID: <5.1.0.14.1.20020215234857.031099f0@server-1> References: <5.1.0.14.2.20020215134217.00b24d90@correo.um.es> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Trace: main.gmane.org 1035397407 14854 80.91.224.250 (23 Oct 2002 18:23:27 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 18:23:27 +0000 (UTC) Cc: ntg-context@ntg.nl Original-To: Pascual Lucas In-Reply-To: <5.1.0.14.2.20020215134217.00b24d90@correo.um.es> Xref: main.gmane.org gmane.comp.tex.context:6903 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:6903 At 01:42 PM 2/15/2002 +0100, you wrote: >Content-Type: text/plain; charset="iso-8859-1"; format=flowed >X-MIME-Autoconverted: from 8bit to quoted-printable by unimur.um.es id >NAA11587 > >Hello, > >I send you a small file that tests widget forms: when you enter in the >rectangle of a button, then a text is shown. This is done by using the /E >and /X keys. I would like the same but with images: when you enter in the >button region, then a image displays. > >My problem is that I can't produce a button with an icon (image) in it. Is >that possible with pdftex? In order to do this with buttons, you need to create the resources (an x object will do)' in context this is implemented as follows: % output=pdftex \setupinteraction [state=start] \setupcolors [state=start] \setuppapersize [S3][S3] \setupbodyfont [17.3pt] \setuplayout [width=middle, header=0pt, footer=0pt, width=middle] \defineframedtext [sample] [background=color, backgroundcolor=darkgray, width=4cm, height=4cm, align={middle,lohi}] \definesymbol[N-ONE] [\sample {\red Some Kind Of Image}] \definesymbol[N-TWO] [\sample {\green Some Kind Of Image}] \definesymbol[N-THREE][\sample {\blue Some Kind Of Image}] \definesymbol[Y-ONE] [\sample {\cyan Some Kind Of Image}] \definesymbol[Y-TWO] [\sample {\magenta Some Kind Of Image}] \definesymbol[Y-THREE][\sample {\yellow Some Kind Of Image}] \definefield [test] [check] [] [{N-ONE,N-TWO,N-THREE},{Y-ONE,Y-TWO,Y-THREE}] \starttext \field[test] \stoptext the field commands work together will the context symbosl mechanism; and symbols can be anything (graphics included); The up/down etc modes are supported by the commalists. BTW, there is a roll over buttn feature in context but not yet in the public distribution, Hans Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- fall-back web server: www.pragma-pod.nl -------------------------------------------------------------------------