* using of field failed when arrange subpages
@ 2007-04-16 2:53 Zhichu Chen
2007-04-16 15:20 ` Zhichu Chen
2007-04-17 11:18 ` Hans Hagen
0 siblings, 2 replies; 4+ messages in thread
From: Zhichu Chen @ 2007-04-16 2:53 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 3119 bytes --]
Hi,
I've tried Hans' example introduced at mwidget-p.pdf, it's perfect. But when
I was trying some subpage arrangements, it just failed. How could it happen?
I guess either shiping out subpages forget the fields or something has
covered over them. Here's a small example (by the way, I don't actually know
the meanings of the arguments of \dosetuparrangement, I'm very appreciated
if someone could explain the macro to me.):
=========================================================
\setupinteraction [state=start]
\installpagearrangement TEMP
{\dosetuparrangement{1}{1}{1}{0}{0}%
\pusharrangedpageTEMP\poparrangedpagesAonly\relax}
\def\pusharrangedpageTEMP#1%
{\doglobal\increment\arrangedpageN
\reportarrangedpage\arrangedpageN
\ifcase\arrangedpageN
\or \handlearrangedpageXandY{#1}0{11}0\arrangedpageA
\or \handlearrangedpageXandY{#1}0{9}0\arrangedpageA
\or \handlearrangedpageXandY{#1}0{7}0\arrangedpageA
\or \handlearrangedpageXandY{#1}0{5}0\arrangedpageA
\or \handlearrangedpageXandY{#1}0{3}0\arrangedpageA
\or \handlearrangedpageXandY{#1}0{1}0\arrangedpageA
\poparrangedpages
\fi}
\def\poparrangedpagesAonly
{\ifnum\arrangedpageN>\zerocount
\dontcomplain
\paperwidth\arrangedpageX\paperwidth
\paperheight\arrangedpageY\paperheight
\outputarrangedbox\arrangedpageA
\doglobal\newcounter\arrangedpageN
\fi}
\definepapersize
[Column]
[width=40pt,
height=400pt,
offset=0pt]
\definepapersize
[Scroll]
[width=540pt,
height=400pt,
offset=0pt]
\setuppapersize [Column][Scroll]
\setuparranging [TEMP,background]
\setuplayout
[margin=0pt,
width=fit,
height=middle,
leftmargin=0pt,
rightmargin=0pt,
leftedge=0pt,
rightedge=0pt,
header=0pt,
footer=0pt,
bottom=0pt,
top=0pt,
backspace=0pt,
topspace=0pt,
bottomspace=0pt,
horoffset=0pt,
veroffset=0pt,
headerdistance=0pt,
footerdistance=0pt,
topdistance=0pt,
bottomdistance=0pt]
\pdfoptionpdfminorversion=6
\title{What?}
\starttext
\newcounter\abc
\doglobal\increment\abc
\setupfields
[reset]
\setupfield
[HelpSetup]
[width=1.2em,height=fit,frame=off,option={readonly,hidden}]
\def\currenthelp{Help::\abc}
\definefield [\currenthelp] [check] [HelpSetup] [helpinfo\abc]
[helpinfo\abc]
\definesymbol [helpinfo\abc] [\SomeHelpText]
\def\SomeHelpText%
{\framed
[width=1.2em,height=fit,align=middle,style=small,
frame=on,background=color,backgroundcolor=white,framecolor=red]
{Some texts}}
\inright{\fitfield[\currenthelp]} Click
\goto{here}[JS(Toggle_Hide{\currenthelp})] to see.
\dorecurse{10}{\input knuth\endgraf}
\stoptext
=========================================================
--
Sincerely yours,
Chen
----------------------------------------------------------------
Zhi-chu Chen | Shanghai Synchrotron Radiation Facility
No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China
tel: 086 21 5955 3405 | zhichu.chen.googlepages.com
| www.sinap.ac.cn
----------------------------------------------------------------
[-- Attachment #1.2: Type: text/html, Size: 5532 bytes --]
[-- Attachment #2: 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] 4+ messages in thread
* Re: using of field failed when arrange subpages
2007-04-16 2:53 using of field failed when arrange subpages Zhichu Chen
@ 2007-04-16 15:20 ` Zhichu Chen
2007-04-17 11:18 ` Hans Hagen
1 sibling, 0 replies; 4+ messages in thread
From: Zhichu Chen @ 2007-04-16 15:20 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 4304 bytes --]
Hi everybody,
I figured out that it is not because the fields are not treated nor they are
overlapped by other materials. Only the JavaScript failed to excute the "
Toggle_Hide" function. When I deleted hidden from
\setupfield
[HelpSetup]
[width=1.2em,height=fit,frame=off,option={readonly,hidden}]
the fields are shown and fail to hide now. I think it can be a bug.
I'm still looking for a solution but I'm new to ConTeXt. I hope you can help
me with it. Any suggestion will be OK.
On 4/16/07, Zhichu Chen <zhichu.chen@gmail.com> wrote:
>
> Hi,
>
> I've tried Hans' example introduced at mwidget-p.pdf, it's perfect. But
> when I was trying some subpage arrangements, it just failed. How could it
> happen? I guess either shiping out subpages forget the fields or something
> has covered over them. Here's a small example (by the way, I don't actually
> know the meanings of the arguments of \dosetuparrangement, I'm very
> appreciated if someone could explain the macro to me.):
>
> =========================================================
>
> \setupinteraction [state=start]
>
> \installpagearrangement TEMP
> {\dosetuparrangement{1}{1}{1}{0}{0}%
> \pusharrangedpageTEMP\poparrangedpagesAonly\relax}
>
> \def\pusharrangedpageTEMP#1%
> {\doglobal\increment\arrangedpageN
> \reportarrangedpage\arrangedpageN
> \ifcase\arrangedpageN
> \or \handlearrangedpageXandY{#1}0{11}0\arrangedpageA
> \or \handlearrangedpageXandY{#1}0{9}0\arrangedpageA
> \or \handlearrangedpageXandY{#1}0{7}0\arrangedpageA
> \or \handlearrangedpageXandY{#1}0{5}0\arrangedpageA
> \or \handlearrangedpageXandY{#1}0{3}0\arrangedpageA
> \or \handlearrangedpageXandY{#1}0{1}0\arrangedpageA
> \poparrangedpages
> \fi}
>
> \def\poparrangedpagesAonly
> {\ifnum\arrangedpageN>\zerocount
> \dontcomplain
> \paperwidth\arrangedpageX\paperwidth
> \paperheight\arrangedpageY\paperheight
> \outputarrangedbox\arrangedpageA
> \doglobal\newcounter\arrangedpageN
> \fi}
>
> \definepapersize
> [Column]
> [width=40pt,
> height=400pt,
> offset=0pt]
>
> \definepapersize
> [Scroll]
> [width=540pt,
> height=400pt,
> offset=0pt]
>
>
> \setuppapersize [Column][Scroll]
> \setuparranging [TEMP,background]
> \setuplayout
> [margin=0pt,
> width=fit,
> height=middle,
> leftmargin=0pt,
> rightmargin=0pt,
> leftedge=0pt,
> rightedge=0pt,
> header=0pt,
> footer=0pt,
> bottom=0pt,
> top=0pt,
> backspace=0pt,
> topspace=0pt,
> bottomspace=0pt,
> horoffset=0pt,
> veroffset=0pt,
> headerdistance=0pt,
> footerdistance=0pt,
> topdistance=0pt,
> bottomdistance=0pt]
>
> \pdfoptionpdfminorversion=6
>
> \title{What?}
>
> \starttext
>
> \newcounter\abc
> \doglobal\increment\abc
>
> \setupfields
> [reset]
> \setupfield
> [HelpSetup]
> [width=1.2em,height=fit,frame=off,option={readonly,hidden}]
>
> \def\currenthelp{Help::\abc}
>
> \definefield [\currenthelp] [check] [HelpSetup] [helpinfo\abc]
> [helpinfo\abc]
>
> \definesymbol [helpinfo\abc] [\SomeHelpText]
> \def\SomeHelpText%
> {\framed
> [width=1.2em,height=fit,align=middle,style=small,
> frame=on,background=color,backgroundcolor=white,framecolor=red]
> {Some texts}}
>
> \inright{\fitfield[\currenthelp]} Click
> \goto{here}[JS(Toggle_Hide{\currenthelp})] to see.
>
> \dorecurse{10}{\input knuth\endgraf}
>
> \stoptext
> =========================================================
>
> --
> Sincerely yours,
> Chen
> ----------------------------------------------------------------
>
> Zhi-chu Chen | Shanghai Synchrotron Radiation Facility
> No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China
> tel: 086 21 5955 3405 | zhichu.chen.googlepages.com
> | www.sinap.ac.cn
> ----------------------------------------------------------------
>
--
Sincerely yours,
Chen
----------------------------------------------------------------
Zhi-chu Chen | Shanghai Synchrotron Radiation Facility
No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China
tel: 086 21 5955 3405 | zhichu.chen.googlepages.com
| www.sinap.ac.cn
----------------------------------------------------------------
[-- Attachment #1.2: Type: text/html, Size: 7684 bytes --]
[-- Attachment #2: 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] 4+ messages in thread
* Re: using of field failed when arrange subpages
2007-04-16 2:53 using of field failed when arrange subpages Zhichu Chen
2007-04-16 15:20 ` Zhichu Chen
@ 2007-04-17 11:18 ` Hans Hagen
2007-04-17 12:10 ` Zhichu Chen
1 sibling, 1 reply; 4+ messages in thread
From: Hans Hagen @ 2007-04-17 11:18 UTC (permalink / raw)
To: mailing list for ConTeXt users
Zhichu Chen wrote:
> Hi,
>
> I've tried Hans' example introduced at mwidget-p.pdf, it's perfect.
> But when
> I was trying some subpage arrangements, it just failed. How could it
> happen?
> I guess either shiping out subpages forget the fields or something has
> covered over them. Here's a small example (by the way, I don't
> actually know
> the meanings of the arguments of \dosetuparrangement, I'm very
> appreciated
> if someone could explain the macro to me.):
>
such features don't work well with arrangements
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: using of field failed when arrange subpages
2007-04-17 11:18 ` Hans Hagen
@ 2007-04-17 12:10 ` Zhichu Chen
0 siblings, 0 replies; 4+ messages in thread
From: Zhichu Chen @ 2007-04-17 12:10 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1640 bytes --]
Thank you any way. I hope it won't be a problem one day.
On 4/17/07, Hans Hagen <pragma@wxs.nl> wrote:
>
> Zhichu Chen wrote:
> > Hi,
> >
> > I've tried Hans' example introduced at mwidget-p.pdf , it's perfect.
> > But when
> > I was trying some subpage arrangements, it just failed. How could it
> > happen?
> > I guess either shiping out subpages forget the fields or something has
> > covered over them. Here's a small example (by the way, I don't
> > actually know
> > the meanings of the arguments of \dosetuparrangement, I'm very
> > appreciated
> > if someone could explain the macro to me.):
> >
> such features don't work well with arrangements
>
> Hans
>
> -----------------------------------------------------------------
> Hans Hagen | PRAGMA ADE
> Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
> | www.pragma-pod.nl
> -----------------------------------------------------------------
>
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>
--
Sincerely yours,
Chen
----------------------------------------------------------------
Zhi-chu Chen | Shanghai Synchrotron Radiation Facility
No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China
tel: 086 21 5955 3405 | zhichu.chen.googlepages.com
| www.sinap.ac.cn
----------------------------------------------------------------
[-- Attachment #1.2: Type: text/html, Size: 3703 bytes --]
[-- Attachment #2: 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] 4+ messages in thread
end of thread, other threads:[~2007-04-17 12:10 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-16 2:53 using of field failed when arrange subpages Zhichu Chen
2007-04-16 15:20 ` Zhichu Chen
2007-04-17 11:18 ` Hans Hagen
2007-04-17 12:10 ` Zhichu Chen
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).