[NTG-context] widgets in layers (property)

2006-01-04 Thread Peter Rolf
New year, old problem...

Hi all,

I want to use widgets (tooltip, buttons,..) in some stacked pdf layers.
My problem is, that the widgets are somehow not bound to the state of
their layer. They are still active, even if the surrounding layer is
deactivated.

I add a mimimal example (it's best to open the 'Layers' tab in acrobat).
The first layer with tooltip is not active, the second one is active,
but has no tooltip.
Just move the mouse over the text and you can see the tooltip from the
deactivated layer one. I have also tried it with a fieldstack, but
'annotations cannot be inside an XForm'.

Any hints are welcome.

Peter



% interface=en output=pdftex
% Time-stamp: 
%
\setupcolors[state=start]
\setupinteraction[state=start]


\starttext

\def\Stackbox#1{\nointerlineskip\vbox\bgroup\wd#1=\zeropoint\ht#1=\zeropoint\dp#1=\zeropoint
  \dontleavehmode\noindent\box#1\egroup}

\defineproperty[layer1][layer][title={one}, state=stop]
\defineproperty[layer2][layer][title={two}, state=start]


\newbox\Layerbox

\startproperty[layer1]
\setbox\Layerbox\vbox{\framed[width=160mm,height=120mm,framecolor=red]
  {\tooltip{First Layer with tooltip}{widget of layer one is active}}}
\Stackbox\Layerbox
\stopproperty
\startproperty[layer2]
\setbox\Layerbox\vbox{\framed[width=160mm,height=120mm,framecolor=green,frameoffset=1pt]
  {Second Layer without tooltip}}
\Stackbox\Layerbox
\stopproperty


\stoptext


%%% Local Variables:
%%% mode: context
%%% TeX-master: ""
%%% End:


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] widgets in layers (property)

2005-12-30 Thread Peter Rolf
Hi all,

I want to use widgets (tooltip, buttons,..) in some stacked pdf layers.
My problem is, that the widgets are somehow not bound to the state of
their layer. They are still active, even if the surrounding layer is
deactivated.

I add a mimimal example (it's best to open the 'Layers' tab in acrobat).
The first layer with tooltip ist not active, the second one is active,
but has no tooltip.
Just move the mouse over the text and you can see the tooltip from the
deactivated layer one. I have also tried it with a fieldstack, but
'annotations cannot be inside an XForm'.

Any hints are welcome.

Peter
% interface=en output=pdftex
% Time-stamp: 
%
\setupcolors[state=start]
\setupinteraction[state=start]


\starttext

\def\Stackbox#1{\nointerlineskip\vbox\bgroup\wd#1=\zeropoint\ht#1=\zeropoint\dp#1=\zeropoint
  \dontleavehmode\noindent\box#1\egroup}

\defineproperty[layer1][layer][title={one}, state=stop]
\defineproperty[layer2][layer][title={two}, state=start]


\newbox\Layerbox

\startproperty[layer1]
\setbox\Layerbox\vbox{\framed[width=160mm,height=120mm,framecolor=red]
  {\tooltip{First Layer with tooltip}{widget of layer one is active}}}
\Stackbox\Layerbox
\stopproperty
\startproperty[layer2]
\setbox\Layerbox\vbox{\framed[width=160mm,height=120mm,framecolor=green,frameoffset=1pt]
  {Second Layer without tooltip}}
\Stackbox\Layerbox
\stopproperty


\stoptext


%%% Local Variables:
%%% mode: context
%%% TeX-master: ""
%%% End:
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context