ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* still fieldstack problem
@ 2001-10-12 18:46 Patrick Gundlach
  2001-10-12 21:01 ` Patrick Gundlach
  0 siblings, 1 reply; 7+ messages in thread
From: Patrick Gundlach @ 2001-10-12 18:46 UTC (permalink / raw)


Hi, 
posting my question from sep. 30 again:

I don't know how to use fieldstack, as described in the metafun handbook 
and the uptodate 1. I have tried the following,

----------------------------------------
\setupinteraction[state=start]
\definesymbol[step1][A]
\definesymbol[step2][B]
\definesymbol[step3][C]
\definefieldstack
   [anim]
   [step1, step2, step3]
   [frame=off]
\starttext
\placefigure[here][fig:myconst]
 {foo \goto{here}[JS(Walk_Field{anim})] bar}
 {\fieldstack[anim]}
\stoptext
---------------------------------------

If I understand this correctly, there should be an 'A' displayed in the 
figure and when I click on 'here' there should be a 'B' in the figure. But 
I cannot see any letter at all (except for the figure caption). What am I 
doing wrong?

This is pdfeTeX, Version 3.14159-14h-released-20010417-2.1 (Web2C 7.3.3.1)
entering extended mode
(./bisect.tex{/usr/share/texmf/pdftex/config/pdftex.cfg}

ConTeXt  ver: 2001.7.11  fmt: 2001.9.9  int: english  mes: english
-- 
Viele Grüße, 

    Patrick Gundlach


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: still fieldstack problem
  2001-10-12 18:46 still fieldstack problem Patrick Gundlach
@ 2001-10-12 21:01 ` Patrick Gundlach
  2001-10-15  7:58   ` Hans Hagen
  0 siblings, 1 reply; 7+ messages in thread
From: Patrick Gundlach @ 2001-10-12 21:01 UTC (permalink / raw)


Good night...

Well, it seems to be a kind of initialization problem. 

% output=pdf
\setupinteraction[state=start]
\setupcolors[state=start]
\definesymbol[step1][A]\definesymbol[step2][B]\definesymbol[step3][C]
\definefieldstack
   [anim]
   [step1, step2, step3]
   [framecolor=red]%frame=off]
\starttext
\fieldstack[anim]
\goto{setb}[JS(Set_Field{anim,2})] \goto{next}[JS(Walk_Field{anim})]
\stoptext

If I click on setb first, the next button works. How can I initialize this 
field properly?

-- 
Viele Grüße, 

    Patrick Gundlach


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: still fieldstack problem
  2001-10-12 21:01 ` Patrick Gundlach
@ 2001-10-15  7:58   ` Hans Hagen
  0 siblings, 0 replies; 7+ messages in thread
From: Hans Hagen @ 2001-10-15  7:58 UTC (permalink / raw)
  Cc: ntg-context

At 11:01 PM 10/12/2001 +0200, Patrick Gundlach wrote:
>Good night...
>
>Well, it seems to be a kind of initialization problem.
>
>% output=pdf
>\setupinteraction[state=start]
>\setupcolors[state=start]
>\definesymbol[step1][A]\definesymbol[step2][B]\definesymbol[step3][C]
>\definefieldstack
>    [anim]
>    [step1, step2, step3]
>    [framecolor=red]%frame=off]
>\starttext
>\fieldstack[anim]
>\goto{setb}[JS(Set_Field{anim,2})] \goto{next}[JS(Walk_Field{anim})]
>\stoptext
>
>If I click on setb first, the next button works. How can I initialize this
>field properly?

\setupinteraction[openaction=ResetForm]

is an option, but unfortunately it differs per viewer (5 is different from 
4 and somehow at adobe they cannot decide on what to initialize in what 
order: fields / javascript / document; has to do with threading the tasks]

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


^ permalink raw reply	[flat|nested] 7+ messages in thread

* still fieldstack problem
@ 2001-10-15 14:26 Patrick Gundlach
  0 siblings, 0 replies; 7+ messages in thread
From: Patrick Gundlach @ 2001-10-15 14:26 UTC (permalink / raw)


Hi,

[...]
> >If I click on setb first, the next button works. How can I initialize this
> >field properly?
> 
> \setupinteraction[openaction=ResetForm]
Now, the first 'picture' is shown on startup. Thank you.

> is an option, but unfortunately it differs per viewer (5 is different from 
> 4 and somehow at adobe they cannot decide on what to initialize in what 
> order: fields / javascript / document; has to do with threading the tasks]

Good to know... so pdf should be ppdf (perhaps portable document 
format..)

Viele Grüße,

  Patrick Gundlach


^ permalink raw reply	[flat|nested] 7+ messages in thread

* still fieldstack problem
@ 2001-10-15  8:48 Patrick Gundlach
  0 siblings, 0 replies; 7+ messages in thread
From: Patrick Gundlach @ 2001-10-15  8:48 UTC (permalink / raw)


Hi,

thanks for the pdf. It shows, that it must be either the context 
version or the pdftex version. I'll try the new pdftex first..

Viele Grüße,

  Patrick Gundlach


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: still fieldstack problem
@ 2001-10-15  4:57 Lutz Haseloff
  0 siblings, 0 replies; 7+ messages in thread
From: Lutz Haseloff @ 2001-10-15  4:57 UTC (permalink / raw)


Am 12 Oct 2001, um 23:01 hat Patrick Gundlach geschrieben:

> Good night...
> 
> Well, it seems to be a kind of initialization problem. 
> 
> % output=pdf
> \setupinteraction[state=start]
> \setupcolors[state=start]
> \definesymbol[step1][A]\definesymbol[step2][B]\definesymbol[step3][C]
> \definefieldstack
>    [anim]
>    [step1, step2, step3]
>    [framecolor=red]%frame=off]
> \starttext
> \fieldstack[anim]
> \goto{setb}[JS(Set_Field{anim,2})] \goto{next}[JS(Walk_Field{anim})]
> \stoptext
> 
> If I click on setb first, the next button works. How can I initialize this 
> field properly?
> 

Your last two examples work as you expected here.
pdfeTeX, Version 3.14159-pre-1.0-unofficial-20010704
ConTeXt  ver: 2001.8.28
Acrobat Reader 5.0

Greetings

Lutz


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: still fieldstack problem
@ 2001-10-15  4:57 Lutz Haseloff
  0 siblings, 0 replies; 7+ messages in thread
From: Lutz Haseloff @ 2001-10-15  4:57 UTC (permalink / raw)


[-- Attachment #1: fieldstacktest.pdf --]
[-- Type: Application/Octet-stream, Size: 13959 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2001-10-15 14:26 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-10-12 18:46 still fieldstack problem Patrick Gundlach
2001-10-12 21:01 ` Patrick Gundlach
2001-10-15  7:58   ` Hans Hagen
2001-10-15  4:57 Lutz Haseloff
2001-10-15  4:57 Lutz Haseloff
2001-10-15  8:48 Patrick Gundlach
2001-10-15 14:26 Patrick Gundlach

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).