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 | [EMAIL PROTECTED]
                       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
-------------------------------------------------------------------------

Reply via email to