ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* widgets in layers (property)
@ 2006-01-04 11:47 Peter Rolf
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Rolf @ 2006-01-04 11:47 UTC (permalink / raw)


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: <Freitag, 30 Dezember 2005 13:54:11; test.tex>
%
\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:

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

* widgets in layers (property)
@ 2005-12-30 13:25 Peter Rolf
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Rolf @ 2005-12-30 13:25 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 608 bytes --]

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

[-- Attachment #2: test.tex --]
[-- Type: text/plain, Size: 889 bytes --]

% interface=en output=pdftex
% Time-stamp: <Freitag, 30 Dezember 2005 13:54:11; test.tex>
%
\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:

[-- Attachment #3: Type: text/plain, Size: 139 bytes --]

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

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

end of thread, other threads:[~2006-01-04 11:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-04 11:47 widgets in layers (property) Peter Rolf
  -- strict thread matches above, loose matches on Subject: below --
2005-12-30 13:25 Peter Rolf

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