Difference between revisions of "Command/definefield"

From Wiki
Jump to navigation Jump to search
m (Text replacement - "pragma-ade.com" to "pragma-ade.nl")
 
(One intermediate revision by the same user not shown)
Line 6: Line 6:
 
== [[Help:Reference|Syntax]] (autogenerated) ==
 
== [[Help:Reference|Syntax]] (autogenerated) ==
 
<syntax>definefield</syntax>
 
<syntax>definefield</syntax>
== [[Help:Reference|Syntax]] ==
 
<table cellspacing="4" cellpadding="2" class="cmd">
 
  <tr>
 
    <td colspan="2" class="cmd">\definefield<span class="first" >[...]</span><span class="second" >[...]</span><span class="third" >[...]</span><span class="first" >[...,...,...]</span><span class="second" style="color:red;">[...]</span></td>
 
  </tr>
 
  <tr valign="top" class="first">
 
    <td class="cmd">[...]</td>
 
    <td>name </td>
 
  </tr>
 
  <tr valign="top" class="second">
 
    <td class="cmd">[...]</td>
 
    <td>name </td>
 
  </tr>
 
  <tr valign="top" class="third">
 
    <td class="cmd">[...]</td>
 
    <td>name </td>
 
  </tr>
 
  <tr valign="top" class="first">
 
    <td class="cmd">[...,...,...]</td>
 
    <td>name </td>
 
  </tr>
 
  <tr valign="top" class="second">
 
    <td class="cmd">[...]</td>
 
    <td>name </td>
 
  </tr>
 
</table>
 
  
  
Line 48: Line 22:
  
 
<texcode>
 
<texcode>
\usemodule[fields] % MkIV
 
 
\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 58: Line 31:
 
* {{cmd|definesubfield}}
 
* {{cmd|definesubfield}}
 
* {{cmd|field}}
 
* {{cmd|field}}
* [http://www.pragma-ade.com/general/manuals/mwidget-s.pdf Widgets Manual]
+
* [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

\definefield

Syntax (autogenerated)

\definefield[...][...][...][...,...][...]
[...]name
[...]radio sub text line push check signature
[...]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

\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: