Difference between revisions of "Command/setupfields"

From ConTeXt wiki
Jump to navigationJump to search
(Create reference page)
 
 
(14 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<!-- please remove this and the following line if you have checked this page -->
 
{{Reference_Cleanup}}
 
 
{{Reference
 
{{Reference
 
|name=setupfields
 
|name=setupfields
Line 6: Line 4:
 
}}
 
}}
  
 +
== [[Help:Reference|Syntax]] (autogenerated) ==
 +
<syntax>setupfields</syntax>
 
== [[Help:Reference|Syntax]] ==
 
== [[Help:Reference|Syntax]] ==
 
<table cellspacing="4" cellpadding="2" class="cmd">
 
<table cellspacing="4" cellpadding="2" class="cmd">
Line 20: Line 20:
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="third">
 
   <tr valign="top" class="third">
     <td class="cmd">[[Reference/en/keyword:n|n]]</td>
+
     <td class="cmd">[[Command/keyword:n|n]]</td>
     <td>[[Reference/en/value:number|number]] </td>
+
     <td>[[Command/value:number|number]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="third">
 
   <tr valign="top" class="third">
     <td class="cmd">[[Reference/en/keyword:distance|distance]]</td>
+
     <td class="cmd">[[Command/keyword:distance|distance]]</td>
     <td>[[Reference/en/value:dimension|dimension]] </td>
+
     <td>[[Command/value:dimension|dimension]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="third">
 
   <tr valign="top" class="third">
     <td class="cmd">[[Reference/en/keyword:before|before]]</td>
+
     <td class="cmd">[[Command/keyword:before|before]]</td>
     <td>[[Reference/en/value:command|command]] </td>
+
     <td>[[Command/value:command|command]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="third">
 
   <tr valign="top" class="third">
     <td class="cmd">[[Reference/en/keyword:after|after]]</td>
+
     <td class="cmd">[[Command/keyword:after|after]]</td>
     <td>[[Reference/en/value:command|command]] </td>
+
     <td>[[Command/value:command|command]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="third">
 
   <tr valign="top" class="third">
     <td class="cmd">[[Reference/en/keyword:inbetween|inbetween]]</td>
+
     <td class="cmd">[[Command/keyword:inbetween|inbetween]]</td>
     <td>[[Reference/en/value:command|command]] </td>
+
     <td>[[Command/value:command|command]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="third">
 
   <tr valign="top" class="third">
     <td class="cmd">[[Reference/en/keyword:color|color]]</td>
+
     <td class="cmd">[[Command/keyword:color|color]]</td>
     <td>[[Reference/en/value:name|name]] </td>
+
     <td>[[Command/value:name|name]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="third">
 
   <tr valign="top" class="third">
     <td class="cmd">[[Reference/en/keyword:style|style]]</td>
+
     <td class="cmd">[[Command/keyword:style|style]]</td>
     <td>[[Reference/en/value:normal|normal]] [[Reference/en/value:bold|bold]] [[Reference/en/value:slanted|slanted]] [[Reference/en/value:boldslanted|boldslanted]] [[Reference/en/value:type|type]] </td>
+
     <td>[[Command/value:normal|normal]] [[Command/value:bold|bold]] [[Command/value:slanted|slanted]] [[Command/value:boldslanted|boldslanted]] [[Command/value:type|type]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="third">
 
   <tr valign="top" class="third">
     <td class="cmd">[[Reference/en/keyword:align|align]]</td>
+
     <td class="cmd">[[Command/keyword:align|align]]</td>
     <td>[[Reference/en/value:left|left]] [[Reference/en/value:middle|middle]] [[Reference/en/value:right|right]] </td>
+
     <td>[[Command/value:flushleft|flushleft]] [[Command/value:middle|middle]] [[Command/value:flushright|flushright]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="third">
 
   <tr valign="top" class="third">
     <td class="cmd">[[Reference/en/keyword:option|option]]</td>
+
     <td class="cmd">[[Command/keyword:option|option]]</td>
     <td>[[Reference/en/value:readonly|readonly]] [[Reference/en/value:required|required]] [[Reference/en/value:protected|protected]] [[Reference/en/value:sorted|sorted]] [[Reference/en/value:unavailable|unavailable]] [[Reference/en/value:hidden|hidden]] [[Reference/en/value:printable|printable]] </td>
+
     <td>[[Command/value:readonly|readonly]] [[Command/value:required|required]] [[Command/value:protected|protected]] [[Command/value:sorted|sorted]] [[Command/value:unavailable|unavailable]] [[Command/value:hidden|hidden]] [[Command/value:printable|printable]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="third">
 
   <tr valign="top" class="third">
     <td class="cmd">[[Reference/en/keyword:clickin|clickin]]</td>
+
     <td class="cmd">[[Command/keyword:clickin|clickin]]</td>
     <td>[[Reference/en/value:reference|reference]] </td>
+
     <td>[[Command/value:reference|reference]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="third">
 
   <tr valign="top" class="third">
     <td class="cmd">[[Reference/en/keyword:clickout|clickout]]</td>
+
     <td class="cmd">[[Command/keyword:clickout|clickout]]</td>
     <td>[[Reference/en/value:reference|reference]] </td>
+
     <td>[[Command/value:reference|reference]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="third">
 
   <tr valign="top" class="third">
     <td class="cmd">[[Reference/en/keyword:regionin|regionin]]</td>
+
     <td class="cmd">[[Command/keyword:regionin|regionin]]</td>
     <td>[[Reference/en/value:reference|reference]] </td>
+
     <td>[[Command/value:reference|reference]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="third">
 
   <tr valign="top" class="third">
     <td class="cmd">[[Reference/en/keyword:regionout|regionout]]</td>
+
     <td class="cmd">[[Command/keyword:regionout|regionout]]</td>
     <td>[[Reference/en/value:reference|reference]] </td>
+
     <td>[[Command/value:reference|reference]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="third">
 
   <tr valign="top" class="third">
     <td class="cmd">[[Reference/en/keyword:afterkey|afterkey]]</td>
+
     <td class="cmd">[[Command/keyword:afterkey|afterkey]]</td>
     <td>[[Reference/en/value:reference|reference]] </td>
+
     <td>[[Command/value:reference|reference]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="third">
 
   <tr valign="top" class="third">
     <td class="cmd">[[Reference/en/keyword:format|format]]</td>
+
     <td class="cmd">[[Command/keyword:format|format]]</td>
     <td>[[Reference/en/value:reference|reference]] </td>
+
     <td>[[Command/value:reference|reference]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="third">
 
   <tr valign="top" class="third">
     <td class="cmd">[[Reference/en/keyword:validate|validate]]</td>
+
     <td class="cmd">[[Command/keyword:validate|validate]]</td>
     <td>[[Reference/en/value:reference|reference]] </td>
+
     <td>[[Command/value:reference|reference]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="third">
 
   <tr valign="top" class="third">
     <td class="cmd">[[Reference/en/keyword:calculate|calculate]]</td>
+
     <td class="cmd">[[Command/keyword:calculate|calculate]]</td>
     <td>[[Reference/en/value:reference|reference]] </td>
+
     <td>[[Command/value:reference|reference]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="third">
 
   <tr valign="top" class="third">
     <td class="cmd">[[Reference/en/keyword:fieldoffset|fieldoffset]]</td>
+
     <td class="cmd">[[Command/keyword:fieldoffset|fieldoffset]]</td>
     <td>[[Reference/en/value:dimension|dimension]] </td>
+
     <td>[[Command/value:dimension|dimension]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="third">
 
   <tr valign="top" class="third">
     <td class="cmd">[[Reference/en/keyword:fieldframecolor|fieldframecolor]]</td>
+
     <td class="cmd">[[Command/keyword:fieldframecolor|fieldframecolor]]</td>
     <td>[[Reference/en/value:name|name]] </td>
+
     <td>[[Command/value:name|name]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="third">
 
   <tr valign="top" class="third">
     <td class="cmd">[[Reference/en/keyword:fieldbackgroundcolor|fieldbackgroundcolor]]</td>
+
     <td class="cmd">[[Command/keyword:fieldbackgroundcolor|fieldbackgroundcolor]]</td>
     <td>[[Reference/en/value:name|name]] </td>
+
     <td>[[Command/value:name|name]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="third">
 
   <tr valign="top" class="third">
 
     <td class="cmd">[...,...=...,...]</td>
 
     <td class="cmd">[...,...=...,...]</td>
     <td>see [[Reference/en/framed|\framed]] </td>
+
     <td>see [[Command/framed|\framed]] </td>
 
   </tr>
 
   </tr>
 
</table>
 
</table>
 
  
 
== Description ==  
 
== Description ==  
 +
Define common options for interactive fields (widgets).
  
 +
Beware, this doesn’t do anything in MkIV! You need to setup every single field class.
  
  
Line 114: Line 115:
  
 
== See also ==
 
== See also ==
<!-- something like [[cmd:goto|\goto]] -->
+
* {{cmd|setupfield}}
 +
 
 +
== Help from ConTeXt-Mailinglist/Forum ==
 +
All issues with:
 +
{{Forum|{{SUBPAGENAME}}}}
  
[[Category:Reference/en|setupfields]]
+
[[Category:Command/Fields|setupfields]]

Latest revision as of 14:37, 15 October 2019

\setupfields

Syntax (autogenerated)

\setupfields[...,...][...=...,...][...=...,...][...=...,...]
[...,...]reset label frame horizontal vertical
...=...,...inherits from \setupfieldtotalframed
...=...,...inherits from \setupfieldlabelframed
...=...,...inherits from \setupfieldcontentframed


Syntax

\setupfields[...,...,...][...][...,...=...,...][...,...=...,...][...,...=...,...]
[...,...,...] name
[...] reset label horizontal vertical frame
n number
distance dimension
before command
after command
inbetween command
color name
style normal bold slanted boldslanted type
align flushleft middle flushright
option readonly required protected sorted unavailable hidden printable
clickin reference
clickout reference
regionin reference
regionout reference
afterkey reference
format reference
validate reference
calculate reference
fieldoffset dimension
fieldframecolor name
fieldbackgroundcolor name
[...,...=...,...] see \framed

Description

Define common options for interactive fields (widgets).

Beware, this doesn’t do anything in MkIV! You need to setup every single field class.


Example

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: