Difference between revisions of "Command/setupfield"
< Command
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 == | ||
− | == | + | <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 == | ||
− | + | * {{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).
- setup name
- ?
- 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
- \definefield
- \definesubfield
- \field
- Widgets Manual
- Widgets
- Module fields m-fields.mkiv
Help from ConTeXt-Mailinglist/Forum
All issues with: