Difference between revisions of "Command/setupfield"
< Command
m (Text replacement - "pragma-ade.com" to "pragma-ade.nl") |
|||
(3 intermediate revisions by 3 users not shown) | |||
Line 4: | Line 4: | ||
}} | }} | ||
− | == [[Help:Reference|Syntax]] (autogenerated) | + | == [[Help:Reference|Syntax]] (autogenerated) == |
<syntax>setupfield</syntax> | <syntax>setupfield</syntax> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
Line 30: | Line 12: | ||
# setup name | # setup name | ||
− | # | + | # keyword options |
− | # options, mostly inherited from {{cmd|setupframed}} | + | # field options, mostly inherited from {{cmd|setupframed}} |
+ | # field label options, inherited from {{cmd|setupframed}} | ||
+ | # field content options, inherited from {{cmd|setupframed}} | ||
== Example == | == Example == | ||
<texcode> | <texcode> | ||
− | |||
\setupfield[shortString][reset,horizontal][width=45mm,option=printable,frame=off,bottomframe=on,height=2em,offset=0.5mm,frameoffset=1mm] | \setupfield[shortString][reset,horizontal][width=45mm,option=printable,frame=off,bottomframe=on,height=2em,offset=0.5mm,frameoffset=1mm] | ||
\definefield[Name][line][shortString][][Hans] | \definefield[Name][line][shortString][][Hans] | ||
Line 46: | Line 29: | ||
* {{cmd|definesubfield}} | * {{cmd|definesubfield}} | ||
* {{cmd|field}} | * {{cmd|field}} | ||
− | * [http://www.pragma-ade. | + | * {{cmd|fieldbody}} – to only use the contentframe of the field |
+ | * [http://www.pragma-ade.nl/general/manuals/mwidget-s.pdf Widgets Manual] | ||
* [[Widgets]] | * [[Widgets]] | ||
* Module fields {{src|m-fields.mkiv}} | * Module fields {{src|m-fields.mkiv}} |
Latest revision as of 08:28, 2 July 2022
\setupfield
Syntax (autogenerated)
\setupfield[...][...,...][...=...,...][...=...,...][...=...,...] | |
[...] | name |
[...,...] | reset label frame horizontal vertical |
...=...,... | inherits from \setupfieldtotalframed |
...=...,... | inherits from \setupfieldlabelframed |
...=...,... | inherits from \setupfieldcontentframed |
Description
Define a setup class for interactive fields (widgets).
- setup name
- keyword options
- field options, mostly inherited from \setupframed
- field label options, inherited from \setupframed
- field content options, inherited from \setupframed
Example
\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
- \fieldbody – to only use the contentframe of the field
- Widgets Manual
- Widgets
- Module fields m-fields.mkiv
Help from ConTeXt-Mailinglist/Forum
All issues with: