Re: [NTG-context] Widgets: Any good examples for developing JS-enabled PDFs that calculate?

2019-11-18 Thread Hans Hagen
quot;A"); var b_fld = this.getField("B"); event.value = a_fld.value + b_fld.value; \stopJScode \setupfield[numField][reset,horizontal] [height=2pc,rulethickness=1pt,framecolor=lightgrey] \setupfield[totalField][reset,horizontal] [ height=2pc, rulethi

Re: [NTG-context] Widgets: Any good examples for developing JS-enabled PDFs that calculate?

2019-11-18 Thread Henning Hraban Ramm
pinteraction [state=start] > > \startJScode{tallyUp} > var a_fld = this.getField("A"); > var b_fld = this.getField("B"); > event.value = a_fld.value + b_fld.value; > \stopJScode > > \setupfield[numField][reset,horizontal] >[height=2pc,ruleth

Re: [NTG-context] Widgets: Any good examples for developing JS-enabled PDFs that calculate?

2019-11-18 Thread Hans Hagen
er(b_fld.value); var t_val = a_val + b_val; t_fld.value = String(t_val); console.clear ; console.println("A: "+a_val) ; console.println("B: "+b_val) ; console.println("T: "+t_val) ; console.println("?: "+t_fld.value) ; this.dirty =

Re: [NTG-context] Widgets: Any good examples for developing JS-enabled PDFs that calculate?

2019-11-17 Thread Paul Mazaitis
: --- begin MWE --- \usemodule[fields] \starttext \setupinteraction [state=start] \startJScode{tallyUp} var a_fld = this.getField("A"); var b_fld = this.getField("B"); event.value = a_fld.value + b_fld.value; \stopJScode \setupfield[numField][reset,horizontal]

Re: [NTG-context] radiobuttons

2019-08-16 Thread Henning Hraban Ramm
> Am 2019-08-15 um 22:40 schrieb Henning Hraban Ramm : > >> Am 2019-08-14 um 22:09 schrieb Wolfgang Schuster >> : > >> Use (with "framed" in the second optional argument) >> >> \setupfield [MMradio] [framed] [..,..=..,..] >> >

Re: [NTG-context] radiobuttons

2019-08-15 Thread Henning Hraban Ramm
> Am 2019-08-14 um 22:09 schrieb Wolfgang Schuster > : > Use (with "framed" in the second optional argument) > > \setupfield [MMradio] [framed] [..,..=..,..] > > to get normal framed fields. I already had "framed=on" as part of my setup. *** I foun

Re: [NTG-context] radiobuttons

2019-08-15 Thread Hans Hagen
t file --- \setupinteraction [state=start] \definesymbol[yes][1] \definesymbol[nop][0] \setupfield[whatever][width=20mm,height=20mm,frame=off] \definefield[what][radio][whatever][whatone,whattwo][whatone] \definesubfield[whatone][][yes,nop] \definesubfield[whattwo][][yes,nop] \startuniqueMPgra

Re: [NTG-context] radiobuttons

2019-08-14 Thread Wolfgang Schuster
that. \setupinteraction[state=start] \setupfield[MMradio][ option=printable, frame=overlay, corner=round, height=1em, width=1em, align=bottom, ] Use (with "framed" in the second optional argument) \setupfield [MMradio] [framed] [..,..=..,..] to get normal framed fields.

Re: [NTG-context] radiobuttons

2019-08-14 Thread Hans Hagen
\setupinteraction [state=start] \definesymbol[yes][1] \definesymbol[nop][0] \setupfield[whatever][width=20mm,height=20mm,frame=off] \definefield[what][radio][whatever][whatone,whattwo][whatone] \definesubfield[whatone][][yes,nop] \definesubfield[whattwo][][yes,nop] \setupfield[textstuff

Re: [NTG-context] radiobuttons

2019-08-13 Thread Henning Hraban Ramm
le all > other fields’ contents get copied, it doesn’t work for radiobuttons; my > minimal example unfortunately can’t show that. > > > \setupinteraction[state=start] > > \setupfield[MMradio][ > option=printable, > frame=overlay, corner=round, > height=1em,

Re: [NTG-context] radiobuttons and other widgets

2019-08-05 Thread Henning Hraban Ramm
This is a feature request or wish: I would be glad to have a module (e.g. "fakefields") as a drop-in replacement that overwrites the field commands (\setupfield, \definefield, \definesubfield, \field) with a version that doesn’t create form fields but just \inframeds that loo

Re: [NTG-context] radiobuttons

2019-08-05 Thread Henning Hraban Ramm
can’t show that. > > > \setupinteraction[state=start] > > \setupfield[MMradio][ > option=printable, > frame=overlay, corner=round, > height=1em, width=1em, > align=bottom, > ] > > \definefield[chooseTeX][radio][MMradio][rbContext,rbLatex,

[NTG-context] radiobuttons

2019-08-05 Thread Henning Hraban Ramm
deactivate them any more. In my project all of the fields are duplicated on other pages, and while all other fields’ contents get copied, it doesn’t work for radiobuttons; my minimal example unfortunately can’t show that. \setupinteraction[state=start] \setupfield[MMradio][ option=printable

Re: [NTG-context] full expansion in widgets

2017-06-22 Thread Henri Menke
\startbuffer[abc] > buffer contents > \stopbuffer > Just an attachment.\attachment[name=buffer.txt, author={Me}, > title={\MyContent\ \input knuth}, buffer=abc] > > \setupfield [TextSetup][width=.5\textwidth, height=.5\textwidth, >  frame=off]

[NTG-context] full expansion in widgets

2017-06-22 Thread Pablo Rodriguez
={\MyContent\ \input knuth}, buffer=abc] \setupfield [TextSetup][width=.5\textwidth, height=.5\textwidth, frame=off] \definefield [SomeField] [text] [TextSetup] [\MyContent\ \input knuth] \field[SomeField] \stoptext Would it be possible to have full expansion in PDF

[NTG-context] expansion in widgets

2017-05-04 Thread Pablo Rodriguez
Hans, I have the following sample: \setupinteraction[state=start] \starttext \setupfield [TextSetup] [width=.5\textwidth, height=.5\textwidth, frame=off] \definefield [SomeField] [text] [TextSetup] [\input knuth] \field[SomeField] \stoptext Would

Re: [NTG-context] Multiple Choice Quiz with self marking funciton

2016-10-25 Thread B.A.Lee
] \setupfield[ChoiceSetup]    [width=2ex,     height=2ex,     frame=on,      background=screen] \starttext \hbox to \hsize    {\field[no1] A: correct \hfill \field[yes] maybe \hfill \field[no2] incorrect \hfill \field[no3] huh?} \starttabulate     \field[no1] $x$ \NC \field[no2] $-x$ \NR %% can't figure out

Re: [NTG-context] Forms and JavaScript

2015-10-07 Thread Henning Hraban Ramm
gt; feature but you can say > > \startJSpreamble FOO used now > … Thank you, that’s great. >> Additionally, I found that \setupfields (plural) doesn’t work, I need to >> setup all formatting in each \setupfield. > > fields have always be special as there can be thousands of fields

Re: [NTG-context] Forms and JavaScript

2015-10-07 Thread Hans Hagen
l open. feature but you can say \startJSpreamble FOO used now … Thank you, that’s great. Additionally, I found that \setupfields (plural) doesn’t work, I need to setup all formatting in each \setupfield. fields have always be special as there can be thousands of fields their settings are

Re: [NTG-context] Forms and JavaScript

2015-10-06 Thread Hans Hagen
... Additionally, I found that \setupfields (plural) doesn’t work, I need to setup all formatting in each \setupfield. fields have always be special as there can be thousands of fields their settings are saved in a special way (in order not to run out of memory / hash space then) ... kind of mkii compatible

Re: [NTG-context] Forms and JavaScript

2015-10-05 Thread Henning Hraban Ramm
http://wiki.contextgarden.net/Widgets Again working with widgets, this bug or feature – JavaScript code is only copied to the PDF if it’s used in a \goto – is still open. Additionally, I found that \setupfields (plural) doesn’t work, I need to setup all formatting in each \setupfield. I found

[NTG-context] Forms and JavaScript

2015-04-02 Thread Henning Hraban Ramm
); df.value = CurDate; function toggleField(){ var f = this.getField(Datum); f.display = ! f.display; } \stopJSpreamble %\goto{toggle}[JS(toggleField)] \blank \setupfield[MMshortString][reset,horizontal][height=5mm, width=50mm, frame=off, bottomframe=on] \definefield[Datum][line

Re: [NTG-context] Forms and JavaScript

2015-04-02 Thread Rik Kabel
(Datum); var CurDate = util.printd(dd.mm., d); df.value = CurDate; function toggleField(){ var f = this.getField(Datum); f.display = ! f.display; } \stopJSpreamble %\goto{toggle}[JS(toggleField)] \blank \setupfield[MMshortString][reset,horizontal][height=5mm, width=50mm, frame

[NTG-context] Resizing multi-line fill-in field

2014-07-01 Thread Michael Guravage
[state=start] \setupfield [TextSetup] [width=\textwidth, height=10em, background=screen, backgroundscreen=.97, frame=off] \definefield [Block] [text] [TextSetup] [] [What's on your mind?] \starttext \field [Block] [type here] \stoptext I have a situation where the amount of text typed

Re: [NTG-context] Resizing multi-line fill-in field

2014-07-01 Thread Hans Hagen
in 10em. \usemodule[fields] \setupinteraction[state=start] \setupfield [TextSetup] [width=\textwidth, height=10em, background=screen, backgroundscreen=.97, frame=off] \definefield [Block] [text] [TextSetup] [] [What's on your mind?] \starttext \field [Block] [type here] \stoptext I have

[NTG-context] PDF Forms - expanding multi-line text fields

2014-06-17 Thread Michael Guravage
I am composing a document that contains pdf forms. Example code in Widgets Uncovered, shows how to specify the height and width of a multi-line text field. Here is a small example: \usemodule[fields] \setupinteraction[state=start] \setupfield [TextSetup] [width=\textwidth,height=5em,background

[NTG-context] Widgets getting check marks instead of colors when the next one is clicked.

2012-03-23 Thread Mikael P. Sundqvist
the green square when the red is clicked? %%% BEGINNING OF FILE \setupinteraction[state=start,color=darkblue] \setupfield[setup 3] [width=1.2ex, height=1.2ex, rulethickness=1pt, framecolor=darkblue,offset=overlay] \definesymbol [ryes] [{\framed[frame=off,width=2em,height=2em

Re: [NTG-context] Widgets getting check marks instead of colors when the next one is clicked.

2012-03-23 Thread Mikael P. Sundqvist
mark instead (tested on linux and windows). Is there anything I can do to keep the green square when the red is clicked? %%% BEGINNING OF FILE \setupinteraction[state=start,color=darkblue] \setupfield[setup 3]        [width=1.2ex, height=1.2ex,        rulethickness=1pt, framecolor=darkblue

[NTG-context] more missing or ungrouped '=' after

2011-03-20 Thread Reviczky, Adam
,align=middle,background=screen,backgroundscreen=.90,frame=off] [height=40pt,width=100pt,color=red,align=right,style=type,background=screen,backgroundscreen=.90,frame=off] \setupfield[widget][] \definefield [Emaila] [line] [widget] [] [pragma@wxs.nl] \field [Emaila] [your email] \stoptext

[NTG-context] JS in widgets still not working with mkiv

2011-02-02 Thread Reviczky, Adam
: jsmkiv.pdf \setupinteraction[state=start] \starttext \setupfield [ShortLine] [label,frame,horizontal] [offset=4pt,height=fit,framecolor=green,background=screen,backgroundscreen=.80] [height=18pt,width=80pt,align=middle,background=screen,backgroundscreen=.90,frame=off] [height=18pt,width=80pt

Re: [NTG-context] Widgets color option not working with Mark IV

2011-01-28 Thread Reviczky, Adam
Dear Hans, 1) alignment for the first field % begin of example \starttext \setupfield [ShortLine] [label,frame,horizontal] [offset=4pt,height=fit,framecolor=green,background=screen,backgroundscreen=.80] [height=18pt,width=80pt,align=middle,background=screen,backgroundscreen=.90,frame=off

Re: [NTG-context] Widgets color option not working with Mark IV

2011-01-27 Thread Hans Hagen
? And since we're at it, I can't get the field+javascript working with mkiv, is that suppose to work? All I want to do is the accented glyphs in a text field, aka: \setupfield [TextSetup][...][...][...] [, regionin=JS(Initialize_TeX_Key), afterkey=JS(Convert_TeX_Key), validate=JS(Convert_TeX_String

Re: [NTG-context] Widgets color option not working with Mark IV

2011-01-26 Thread Hans Hagen
,backgroundscreen=.90,frame=off] \setupfield [sizea] [horizontal] [style={\switchtobodyfont[20pt]}] \setupfield [sizeb] [horizontal] [style={\switchtobodyfont[28pt]}] \setupfield [sizec] [horizontal] [style={\switchtobodyfont[20pt]}] \definefield [Emaila] [line] [sizea] [] [pra...@wxs.nl

[NTG-context] Widgets color option not working with Mark IV

2011-01-26 Thread Reviczky, Adam
+javascript working with mkiv, is that suppose to work? All I want to do is the accented glyphs in a text field, aka: \setupfield [TextSetup][...][...][...] [, regionin=JS(Initialize_TeX_Key), afterkey=JS(Convert_TeX_Key), validate=JS(Convert_TeX_String)] Works with mkii, but has no effect with mkiv

[NTG-context] field alignment bug in latest beta

2011-01-25 Thread Reviczky, Adam
Hi, The alignment doesn't apply anymore to the first field (widget) in the latest beta. Here's the minimal example: % begin of example \starttext \setupfield [ShortLine] [label,frame,horizontal] [offset=4pt,height=fit,framecolor=green,background=screen,backgroundscreen=.80] [height=18pt,width

[NTG-context] Widgets color option not working with Mark IV

2011-01-25 Thread Reviczky, Adam
,horizontal] [offset=4pt,height=fit,framecolor=green,background=screen,backgroundscreen=.80] [height=40pt,width=100pt,align=middle,background=screen,backgroundscreen=.90,frame=off] [height=40pt,width=100pt,color=red,align=right,style=type,background=screen,backgroundscreen=.90,frame=off] \setupfield

Re: [NTG-context] SubmitForm interaction

2010-11-29 Thread Daniel Grycman
Here comes the short one :-). \setupcolors[state=start] \setupinteraction[state=start, author=Daniel Grycman, date=\currentdate] \setupfields[methods=xml] \setupfield[TextSetup] [width=10cm, height=2.75cm, rulethickness=1pt, regionin=JS(Initialize_TeX_Key), afterkey=JS(Convert_TeX_key), validate

Re: [NTG-context] SubmitForm interaction

2010-11-29 Thread Procházka Lukáš Ing . - Pontex s . r . o .
daniel.gryc...@rub.de wrote: Here comes the short one :-). \setupcolors[state=start] \setupinteraction[state=start, author=Daniel Grycman, date=\currentdate] \setupfields[methods=xml] \setupfield[TextSetup] [width=10cm, height=2.75cm, rulethickness=1pt, regionin=JS(Initialize_TeX_Key), afterkey

Re: [NTG-context] Change Font in PDF-fields

2010-02-20 Thread Andreas Harder
Am 19.02.2010 um 14:20 schrieb Hans Hagen: On 19-2-2010 10:40, Andreas Harder wrote: \setupfield [ShortLine] [label,frame,horizontal] [height=fit,framecolor=green] [] [height=18pt,style=rmtf] % - still mono \definefield [Email] [line] [ShortLine] [] [pra...@wxs.nl

[NTG-context] Change Font in PDF-fields

2010-02-19 Thread Andreas Harder
Hi all, if I use the following setup \setupfield [ShortLine] [label,frame,horizontal] [height=fit,framecolor=green] [] [height=18pt,type=normal] % - is mono \definefield [Email] [line] [ShortLine] [] [pra...@wxs.nl] \starttext \startTEXpage[offset=1ex] \field [Email] [E-Mail

Re: [NTG-context] Change Font in PDF-fields

2010-02-19 Thread Hans Hagen
On 19-2-2010 10:40, Andreas Harder wrote: \setupfield [ShortLine] [label,frame,horizontal] [height=fit,framecolor=green] [] [height=18pt,type=normal] %- is mono \definefield [Email] [line] [ShortLine] [] [pra...@wxs.nl] \starttext \startTEXpage[offset=1ex] \field [Email] [E

Re: [NTG-context] Fields and JS Calculations

2009-11-23 Thread Hans Hagen
Calculate () { v = getField(textC) ; v.value = 0 ; v.value += AFMakeNumber(getField(textA).value) ; v.value += AFMakeNumber(getField(textB).value) ; v.value = ; } \stopJSpreamble \setupinteraction[state=start] \setupfield [lineABC] [label,frame,horizontal] [frame=off

Re: [NTG-context] Fields and JS Calculations

2009-11-22 Thread jeroen muskee
Calculate () { v = getField(textC) ; v.value = 0 ; v.value += AFMakeNumber(getField(textA).value) ; v.value += AFMakeNumber(getField(textB).value) } \stopJSpreamble \starttext \setupfield [lineABC] [label,frame,horizontal] [frame=off] [height=18pt,width=15em,align=middle,frame=off] [height

[NTG-context] Fields and JS Calculations

2009-11-21 Thread jeroen muskee
] [line] [linepressure] [] [] \setupfield [linedensity] [label,frame,horizontal] [frame=off] [height=18pt,width=15em,align=middle,frame=off] [height=18pt,width=20em,align=right,style=\tfx,,frame=on] \setupfield [linedepth] [label,frame,horizontal] [frame=off] [height=18pt,width=15em

[NTG-context] Howto add a # sign to a \button URL?

2009-05-12 Thread Oliver Heins
[shorttext] [line] [ShortLine] [] [] \setupfield [ShortLine] [label,frame,horizontal] [frame=off] [height=18pt,width=15em,align=middle,frame=off] [height=18pt,width=20em,align=right,style=\tfx,,frame=on] \field[shorttext][Bitte geben Sie einen Text ein:] \blank \button[]{Abschicken}[SubmitForm{http

[NTG-context] MP color and interaction (alpha)

2009-01-08 Thread Peter Rolf
Hi, seems that color support is also broken in case of interaction. I get no red frame for the attached example. Best wishes, Peter \setupcolors[state=start] \setupinteraction[state=start] \starttext \definesymbol[no][] \definefield[check-me][check][setup3][yes,no][no] \setupfield[setup3][n

[NTG-context] Widgets with luatex

2008-04-08 Thread Lutz Haseloff
\setupinteraction[state=start] \starttext \setupfield [UglySetup] [width=6em, height=1.2\lineheight, location=low] \definefield [Ugly] [choice] [UglySetup] [ugly,awful,bad] [ugly] Text text \field[Ugly] text text. \stoptext I use ConTeXt ver: 2008.03.24 23:24 MKIV fmt: 2008.4.2 int: english/english

[NTG-context] JavaScript conflicts

2008-01-22 Thread Zhichu Chen
= font.Digital ; this.dirty = false } var timeout = app.setInterval(start_clock(),1000); \stopJSpreamble % Field of clock \useJSscripts[fld] \definefield [time.clock] [line] [TimeLogo] \setupfield [TimeLogo] [horizontal,frame] [width=fit,height=25pt,background=, backgroundcolor=,frame

Re: [NTG-context] ConTeXt-ifying Kile

2008-01-02 Thread Matija Šuklje
\setupenumerations[names][settings] \setupexternalfigures[options] \setupfield[name][label|horizontal|vertical|frame][settings] \setupfields[names][reset|label|horizontal|vertical|frame][options][settings][settings] \setupfillinlines[options] \setupfillinrules[options] \setupfloat[name][options

Re: [NTG-context] Interactive slides---hidden field on every page

2007-09-17 Thread Peter Rolf
][content][content] \setupfields[reset] \setupfield[HelpSetup] [width=fit,height=fit,frame=off,option={readonly,hidden}] % \definesymbol[content][\SomeContentText] \def\SomeContentText{% \startframedtext [width=\textwidth, height=fit, frame=on, background=color, backgroundcolor

[NTG-context] Interactive slides---hidden field on every page

2007-09-12 Thread Michal Kvasnička
containing the list of content. I'd like it to go to the \Topic I want to discuss and disappear. I tried this: \definefield[Content][check][HelpSetup][content][content] \setupfields[reset] \setupfield[HelpSetup] [width=fit,height=fit,frame=off,option={readonly,hidden}] % \definesymbol[content

Re: [NTG-context] luatex and interaction

2007-08-07 Thread Peter Rolf
] [\FS{2}] \definesymbol [three] [\FS{3}] \definesymbol [four][\FS{4}] \definesymbol [five][\FS{5}] \setupfield[interaction] [width=4cm,height=4cm, % frame=off, framecolor=blue, offset=none,% default offset causes different positioning of walk button and fieldstack clickin

Re: [NTG-context] using of field failed when arrange subpages

2007-04-16 Thread Zhichu Chen
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

[NTG-context] using of field failed when arrange subpages

2007-04-15 Thread Zhichu Chen
=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

Re: [NTG-context] Still have no idea about how to specify fonts in JavaScript fields.

2006-11-22 Thread Hans Hagen
[TestField][text] [TestGroup][][some example text] \definefield[FontField][check][FontGroup][yes,no][no] \definesymbol[yes][\strut YES] \definesymbol[no] [\strut NO] \setupfield[TestGroup][none][width=10cm] \setupfield[FontGroup][none][width=3cm,height=2cm,clickin=JS(oeps)] \field[TestField

[NTG-context] beta: bug with transparent colors in fields

2006-11-13 Thread Peter Rolf
\SomeNote#1#2% {\hbox {\doglobal\increment\AnotherNote \definesymbol[note:\AnotherNote:on][\WhatANote{#2}]% % \setupfield[notes][offset=overlay,frame=off,option={readonly,hidden}] % this confuses acrobat, probably some interference bug, I spent too much time

Re: [NTG-context] goto framed

2006-10-17 Thread Peter Rolf
}] \definesymbol [two] [\FS{2}] \definesymbol [three] [\FS{3}] \definesymbol [four][\FS{4}] \definesymbol [five][\FS{5}] \setupfield[interaction] [width=4cm,height=4cm, % frame=off, framecolor=blue, offset=none,% default offset causes different positioning of walk button

Re: [NTG-context] How to display JavaScript's values in ConTeXt

2006-09-06 Thread Peter Rolf
][][ \setupfield [Results] [horizontal,frame] [width=fit, height=2cm, frame=on] [height=18pt,width=80pt,align=middle,frame=off] [height=18pt,width=80pt,color=red,align=right,style=type,frame=off] \setupbuttons [background=infobutton] \starttext Click \button{7}[JS(digit{7

Re: [NTG-context] How to display JavaScript's values in ConTeXt

2006-09-05 Thread Peter Rolf
\startJScode{digit} do_digit(JS_S_1); \stopJScode \definefield[Stack.1][line][Results][][ \setupfield [Results] [horizontal,frame] [width=fit, height=2cm, frame=on] [height=18pt,width=80pt,align=middle,frame=off] [height=18pt,width=80pt,color=red,align=right,style=type,frame

Re: [NTG-context] How to display JavaScript's values in ConTeXt

2006-09-05 Thread Zhichu Chen
] \startJSpreamble functions used now function do_digit(d) { Stack[Level] += String(d); do_refresh(Level) } \stopJSpreamble \startJScode{digit} do_digit(JS_S_1); \stopJScode \definefield[Stack.1][line][Results][][ \setupfield [Results] [horizontal,frame] [width=fit

Re: [NTG-context] How to display JavaScript's values in ConTeXt

2006-09-05 Thread Zhichu Chen
] \startJSpreamble functions used now function do_digit(d) { Stack[Level] += String(d); do_refresh(Level) } \stopJSpreamble \startJScode{digit} do_digit(JS_S_1); \stopJScode \definefield[Stack.1][line][Results][][ \setupfield [Results] [horizontal,frame] [width=fit

[NTG-context] How to display JavaScript's values in ConTeXt

2006-09-04 Thread Zhichu Chen
); do_refresh(Level) } \stopJSpreamble \startJScode{digit} do_digit(JS_S_1); \stopJScode \definefield[Stack.1][line][Results][][ \setupfield [Results] [horizontal,frame] [width=fit, height=2cm, frame=on] [height=18pt,width=80pt,align=middle,frame=off] [height=18pt,width=80pt,color=red

Re: [NTG-context] Fieldstack Walk

2006-04-22 Thread Peter Rolf
,height=4cm,strut=no]{\red\bf#1}}% \definesymbol [empty] [] \definesymbol [one] [\FS{1}] \definesymbol [two] [\FS{2}] \definesymbol [three] [\FS{3}] \definesymbol [four][\FS{4}] \definesymbol [five][\FS{5}] \setupfield[interaction] [width=4cm,height=4cm, % frame=off

Re: [NTG-context] Fieldstack Walk

2006-04-18 Thread Peter Rolf
}] \definesymbol[sgolds3][\FS{E}] \setupfield[hidden][width=4cm,height=4cm, % frame=off, framecolor=blue, clickin=JS(Walk_Field{fgolds3})] \definefield[Walk][check][hidden][empty][empty] \definefieldstack[fgolds3] [sgolds1,sgolds3a,sgolds3b,sgolds3c,sgolds3] [frame=off,clickin=JS

Re: [NTG-context] Problem with \mainlanguage[fr] and javascript

2005-05-09 Thread Denis Pinsard
[fr] \setupinteraction[state=start] \definefield [Help] [check] [HelpSetup] [helpinfo] [helpinfo] \setupfields[reset] \setupfield[HelpSetup][option={readonly,hidden}] \definesymbol [helpinfo] [SomeHelpText] \starttext \fitfield[Help] \goto {Help} [JS(Toggle_Hide{Help})]. \stoptext this works ok

Re: [NTG-context] Problem with \mainlanguage[fr] and javascript

2005-05-08 Thread Hans Hagen
] [helpinfo] [helpinfo] \setupfields[reset] \setupfield[HelpSetup][option={readonly,hidden}] \definesymbol [helpinfo] [SomeHelpText] \starttext \fitfield[Help] \goto {Help} [JS(Toggle_Hide{Help})]. \stoptext this works ok in my version; what version do you run? Hans

[NTG-context] Problem with \mainlanguage[fr] and javascript

2005-04-28 Thread Denis Pinsard
] \setupfields[reset] \setupfield[HelpSetup][option={readonly,hidden}] \definesymbol [helpinfo] [SomeHelpText] \starttext \fitfield[Help] \goto {Help} [JS(Toggle_Hide{Help})]. \stoptext -- Denis. ___ ntg-context mailing list ntg-context@ntg.nl http

[NTG-context] first element in radio field

2004-10-05 Thread Peter Rolf
] [{\ButtonSelected{InAreaX}}] \definesymbol[TbuttonZ] [{\ButtonSelected{LMbuttonX}}] \setupfield[button] [width=40mm, height=8mm, align=right, distance=0mm, fieldoffset=0bp, offset=none, strut=no, depth=0pt, frame=off, leftframe=on, rightframe=on, ] \setupfield

Re: [NTG-context] first element in radio field

2004-10-05 Thread Hans Hagen
[TbuttonY] [{\ButtonSelected{InAreaX}}] \definesymbol[TbuttonZ] [{\ButtonSelected{LMbuttonX}}] \setupfield[button] [width=40mm, height=8mm, align=right, distance=0mm, fieldoffset=0bp, offset=none, strut=no, depth=0pt, frame=off, leftframe=on, rightframe

Re: [NTG-context] first element in radio field

2004-10-05 Thread Willi Egger
}}] \setupfield[button] [width=40mm, height=8mm, align=right, distance=0mm, fieldoffset=0bp, offset=none, strut=no, depth=0pt, frame=off, leftframe=on, rightframe=on, ] \setupfield[radiofield][vertical] % same for horizontal+\hbox [align=right, distance=0mm, offset

[NTG-context] key=value parameters

2004-07-23 Thread Vit Zyka
Hallo ConTeXters, I am playing with defining my own macro with key=value parameters. Please, consider definition: \def\setupField[#1]#2[#3]{\getparameters[Field!#1!][#3]} \setupField[name][mykey=value,textwidth=2cm] If you let ConTeXt to show the values by \message{ mykey=\getvalue

Re: [NTG-context] typesetting to grid in layer with widgets

2004-03-11 Thread Hans Hagen
of the frame later) furthermore, I'd like to allow for input into fields from Acrobat. I have this: \definefield[CertID][text][CertIDSetup][] \setupfield[CertIDSetup][% readonly=no,printable=yes,width=4em,% frame=on,height=8mm,offset=5ex] \myCenter{3}{11}{Sertifikat Nr. DNV-2004-OSL

Re: [NTG-context] Absolute positioning

2003-12-02 Thread Hans Hagen
\AnotherNote \def\SomeNote#1#2% {\hbox {\doglobal\increment\AnotherNote \definesymbol[note:\AnotherNote:on][\WhatANote{#2}]% \setupfield[notes][offset=overlay,frame=off,option={readonly,hidden}] % this confuses acrobat, probably some interference bug, I spent too much time

[NTG-context] interaction with radio buttons

2003-11-01 Thread Johannes Hüsing
] \copyfield [ex-c] [ex-z] \setupfield [setup 1] [width=1cm,height=1cm,framecolor=red] \setupfield [setup 2] [width=.75cm,height=.75cm] \starttext \hbox to \hsize {\field[ex-a]\hfil\field[ex-b]\hfil\field[ex-c]\hfil\hfil \field[ex-p]\hfil\field[ex-q]\hfil\field[ex-r]\hfil\hfil \field[ex-x]\hfil