Difference between revisions of "Command/setupfield"

From Wiki
Jump to navigation Jump to search
m (Text replace - "\[\[cmd:(.*)\|(.*)\]\]" to "{{cmd|$1}}")
(example, links)
Line 25: Line 25:
  
 
== Description ==  
 
== Description ==  
 +
Define a setup class for interactive fields (widgets).
  
 +
# setup name
 +
# ?
 +
# options, mostly inherited from {{cmd|setupframed}}
  
 +
== Example ==
  
== Example ==
+
<texcode>
<!-- Please fill in an example if you can -->
+
\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}} -->
+
* {{cmd|definefield}}
 +
* {{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 ==

Revision as of 08:30, 5 October 2015

\setupfield

Syntax

\setupfield[...][...,...,...][...,...=...,...][...,...=...,...][...,...=...,...]
[...] name
[...,...,...] label horizontal vertical frame
[...,...=...,...] see \setupfields


Description

Define a setup class for interactive fields (widgets).

  1. setup name
  2.  ?
  3. options, mostly inherited from \setupframed

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: