Peter Rolf wrote:
> Hi all!
> I've searched for an answer some time ago
> Meanwhile I've solved the problem and the solution is quite simple. Only
> some minor changes are needed, to bound the state of fields to the state
> of their surrounding PDF layer. I attached a 'small' example file and
> two diff files for patching.
> So what is this good for? For example think about multilayered control
> fields (stack), which appear in the form of a tabular box (one tab
> active at a time). Every tab can contain any kind of interactive field.
> No more mouse interaction (and ugly gfx glitches) with hidden fields, if
> the surrounding PDF layer is switched off.
So what you propose is to have an automatic relationship between layers 
and widgets?
> To Hans:
> - Dunno if the name \currentPDFlayer is o.k., or if there is a better
> place for it's (re)initialisation.
> - The fields are still active (only hidden), if the outer layer is
> deactivated (nested). Is the outer layer not part of the child layers
> OCMG? Reading the PDF reference manual is much harder than reading your
> sources...
> So it's up to you, if and how this is added.
What you do basically comes down to having a default connection between the 
layers key of widgets and the current layer. This is ok but need to be a 
configurable feature. I'll think about it. 


                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | fax: 038 477 53 74 |

ntg-context mailing list

Reply via email to