Difference between revisions of "Command/definefield"

From Wiki
Jump to navigation Jump to search
m (Text replace - "Category:(.*)" to "Category:Command/$1")
 
(4 intermediate revisions by 4 users not shown)
Line 4: Line 4:
 
}}
 
}}
  
 +
== [[Help:Reference|Syntax]] (autogenerated) ==
 +
<syntax>definefield</syntax>
 
== [[Help:Reference|Syntax]] ==
 
== [[Help:Reference|Syntax]] ==
 
<table cellspacing="4" cellpadding="2" class="cmd">
 
<table cellspacing="4" cellpadding="2" class="cmd">
Line 32: Line 34:
  
  
== Description ==  
+
== Description ==
 +
Define an interactive field (widget)
 +
 
 
# reference name
 
# reference name
 
# type of widget (e.g. line)
 
# type of widget (e.g. line)
# name of setup (defined with \setupfield)
+
# name of setup (defined with {{cmd|setupfield}})
# ???
+
# content values (for radio buttons or checkboxes)
 
# initial content of field
 
# initial content of field
  
Line 42: Line 46:
  
 
== Example ==
 
== Example ==
<!-- Please fill in an example if you can -->
+
 
 +
<texcode>
 +
\usemodule[fields] % MkIV
 +
\setupfield[shortString][reset,horizontal][width=45mm,option=printable,frame=off,bottomframe=on,height=2em,offset=0.5mm,frameoffset=1mm]
 +
\definefield[Name][line][shortString][][Hans]
 +
\field[Name]
 +
</texcode>
  
 
== See also ==
 
== See also ==
<!-- something like [[cmd:goto|\goto]] -->
+
* {{cmd|setupfield}}
 +
* {{cmd|definesubfield}}
 +
* {{cmd|field}}
 +
* [http://www.pragma-ade.com/general/manuals/mwidget-s.pdf Widgets Manual]
 +
* [[Widgets]]
 +
* Module fields {{src|m-fields.mkiv}}
  
 
== Help from ConTeXt-Mailinglist/Forum ==
 
== Help from ConTeXt-Mailinglist/Forum ==

Latest revision as of 14:37, 15 October 2019

\definefield

Syntax (autogenerated)

\definefield[...][...][...][...,...][...]
[...]name
[...]radio sub text line push check signature
[...]name
[...,...]name
[...]name


Syntax

\definefield[...][...][...][...,...,...][...]
[...] name
[...] name
[...] name
[...,...,...] name
[...] name


Description

Define an interactive field (widget)

  1. reference name
  2. type of widget (e.g. line)
  3. name of setup (defined with \setupfield)
  4. content values (for radio buttons or checkboxes)
  5. initial content of field


Example

\usemodule[fields] % MkIV
\setupfield[shortString][reset,horizontal][width=45mm,option=printable,frame=off,bottomframe=on,height=2em,offset=0.5mm,frameoffset=1mm]
\definefield[Name][line][shortString][][Hans]
\field[Name]

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: