<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://mediawiki.kfs.oeaw.ac.at/stx/docs/wiki/index.php?action=history&amp;feed=atom&amp;title=Programmer_Guide%2FShell_Items%2FDialog%2FDialog_Controls%2FEdit</id>
	<title>Programmer Guide/Shell Items/Dialog/Dialog Controls/Edit - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://mediawiki.kfs.oeaw.ac.at/stx/docs/wiki/index.php?action=history&amp;feed=atom&amp;title=Programmer_Guide%2FShell_Items%2FDialog%2FDialog_Controls%2FEdit"/>
	<link rel="alternate" type="text/html" href="https://mediawiki.kfs.oeaw.ac.at/stx/docs/wiki/index.php?title=Programmer_Guide/Shell_Items/Dialog/Dialog_Controls/Edit&amp;action=history"/>
	<updated>2026-05-06T12:01:15Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.6</generator>
	<entry>
		<id>https://mediawiki.kfs.oeaw.ac.at/stx/docs/wiki/index.php?title=Programmer_Guide/Shell_Items/Dialog/Dialog_Controls/Edit&amp;diff=10045&amp;oldid=prev</id>
		<title>Jw: Created page with &quot;File:dialog_control_edit.png   SET &lt;var&gt;dialog&lt;/var&gt; &lt;var&gt;index&lt;/var&gt; EDIT &lt;var&gt;row&lt;/var&gt; &lt;var&gt;col&lt;/var&gt; &lt;var&gt;caption&lt;/var&gt; &lt;var&gt;var&lt;sub&gt;1&lt;/sub&gt;&lt;/var&gt; [ &lt;var&gt;width&lt;/var&gt; &lt;...&quot;</title>
		<link rel="alternate" type="text/html" href="https://mediawiki.kfs.oeaw.ac.at/stx/docs/wiki/index.php?title=Programmer_Guide/Shell_Items/Dialog/Dialog_Controls/Edit&amp;diff=10045&amp;oldid=prev"/>
		<updated>2018-05-15T09:56:54Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&lt;a href=&quot;/stx/docs/wiki/index.php/File:Dialog_control_edit.png&quot; title=&quot;File:Dialog control edit.png&quot;&gt;File:dialog_control_edit.png&lt;/a&gt;   SET &amp;lt;var&amp;gt;dialog&amp;lt;/var&amp;gt; &amp;lt;var&amp;gt;index&amp;lt;/var&amp;gt; EDIT &amp;lt;var&amp;gt;row&amp;lt;/var&amp;gt; &amp;lt;var&amp;gt;col&amp;lt;/var&amp;gt; &amp;lt;var&amp;gt;caption&amp;lt;/var&amp;gt; &amp;lt;var&amp;gt;var&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&amp;lt;/var&amp;gt; [ &amp;lt;var&amp;gt;width&amp;lt;/var&amp;gt; &amp;lt;...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[File:dialog_control_edit.png]]&lt;br /&gt;
&lt;br /&gt;
 SET &amp;lt;var&amp;gt;dialog&amp;lt;/var&amp;gt; &amp;lt;var&amp;gt;index&amp;lt;/var&amp;gt; EDIT &amp;lt;var&amp;gt;row&amp;lt;/var&amp;gt; &amp;lt;var&amp;gt;col&amp;lt;/var&amp;gt; &amp;lt;var&amp;gt;caption&amp;lt;/var&amp;gt; &amp;lt;var&amp;gt;var&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&amp;lt;/var&amp;gt; [ &amp;lt;var&amp;gt;width&amp;lt;/var&amp;gt; &amp;lt;var&amp;gt;height&amp;lt;/var&amp;gt; &amp;lt;var&amp;gt;var&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&amp;lt;/var&amp;gt;|* &amp;lt;var&amp;gt;fg&amp;lt;/var&amp;gt; &amp;lt;var&amp;gt;bg&amp;lt;/var&amp;gt; &amp;lt;var&amp;gt;font&amp;lt;/var&amp;gt; ] [ /A|L|R ] [ /F[=PCAFS] ] &lt;br /&gt;
&lt;br /&gt;
{|class=&amp;quot;keinrahmen&amp;quot;&lt;br /&gt;
|  &amp;lt;var&amp;gt;var&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&amp;lt;/var&amp;gt;&lt;br /&gt;
| The name of the variable or table (for multiline edit; &amp;lt;code&amp;gt;/Multiline&amp;lt;/code&amp;gt;) to store the edit string in.&lt;br /&gt;
|-&lt;br /&gt;
|  &amp;lt;var&amp;gt;var&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&amp;lt;/var&amp;gt;&lt;br /&gt;
| This is an optional table setting advanced properties of the edit control (see below). If you don&amp;#039;t need to set advanced properties, you may indicate so by supplying the asterisk, &amp;amp;quot;&amp;lt;code&amp;gt;*&amp;lt;/code&amp;gt;&amp;amp;quot;, instead of a table.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==== Advanced properties of the EDIT control ====&lt;br /&gt;
&lt;br /&gt;
A large number of advanced properties (i.e., settings) for an edit control may be set using a parameter table supplied as the &amp;lt;var&amp;gt;var&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&amp;lt;/var&amp;gt; argument (see above). If you don&amp;#039;t need these advanced features, you may indicate so by supplying an asterisk, &amp;amp;quot;&amp;lt;code&amp;gt;*&amp;lt;/code&amp;gt;&amp;amp;quot;, instead of a table.&lt;br /&gt;
&lt;br /&gt;
The parameter table used for setting the advanced properties of an edit control must be an extended table containing exactly two string columns that, in turn, must be named &amp;amp;quot;parameter&amp;amp;quot; and &amp;amp;quot;string&amp;amp;quot;. You may create such a table using the following {{STX}} statement:&lt;br /&gt;
&lt;br /&gt;
 #tab := new table * * /E string:parameter string:string&lt;br /&gt;
&lt;br /&gt;
For each advanced property to set, you need to store a respective entry (i.e., row) in the table, &amp;#039;&amp;#039;and&amp;#039;&amp;#039; tag the entry (see [[Programmer_Guide/Shell_Items/Table/SET_TABLE#Tagging_table_entries|Tagging table entries]]). Each such entry has to contain the name of the respective property in the &amp;lt;code&amp;gt;name&amp;lt;/code&amp;gt; column, and its desired value in the &amp;lt;code&amp;gt;string&amp;lt;/code&amp;gt; column.&lt;br /&gt;
&lt;br /&gt;
The following advanced parameters are supported:&lt;br /&gt;
&lt;br /&gt;
{|class=&amp;quot;keinrahmen&amp;quot;&lt;br /&gt;
! align=&amp;quot;left&amp;quot; | Parameter&lt;br /&gt;
! align=&amp;quot;left&amp;quot; | Value(s)&lt;br /&gt;
|-&lt;br /&gt;
! align=&amp;quot;left&amp;quot; | &amp;lt;var&amp;gt;name&amp;lt;/var&amp;gt; field&lt;br /&gt;
! align=&amp;quot;left&amp;quot; | &amp;lt;var&amp;gt;string&amp;lt;/var&amp;gt; field&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;append&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;on&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;off&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;breakpoints&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;on&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;off&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;caret&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;on&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;off&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;clear&amp;lt;/code&amp;gt;&lt;br /&gt;
| If specified, clears the contents of the edit control. There is no argument to this parameter.&lt;br /&gt;
Example: &amp;lt;code&amp;gt;$#tSettings parameter clear /T&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;colorOutput&amp;lt;/code&amp;gt;&lt;br /&gt;
| sets the color for the shell output (only for edit controls with a &amp;lt;code&amp;gt;type&amp;lt;/code&amp;gt; property set to &amp;lt;code&amp;gt;cli&amp;lt;/code&amp;gt;)&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;colorInput&amp;lt;/code&amp;gt;&lt;br /&gt;
| sets the color for the input (only for edit controls with a &amp;lt;code&amp;gt;type&amp;lt;/code&amp;gt; property set to &amp;lt;code&amp;gt;cli&amp;lt;/code&amp;gt;)&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;colorPrompt&amp;lt;/code&amp;gt;&lt;br /&gt;
| sets the color for the prompt (only for edit controls with a &amp;lt;code&amp;gt;type&amp;lt;/code&amp;gt; property set to &amp;lt;code&amp;gt;cli&amp;lt;/code&amp;gt;)&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;colorBackground&amp;lt;/code&amp;gt;&lt;br /&gt;
| Sets the color for the background (only for edit controls with a &amp;lt;code&amp;gt;type&amp;lt;/code&amp;gt; property set to &amp;lt;code&amp;gt;cli&amp;lt;/code&amp;gt;)&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;colorCaret&amp;lt;/code&amp;gt;&lt;br /&gt;
| Sets the color (only for edit controls with a &amp;lt;code&amp;gt;type&amp;lt;/code&amp;gt; property set to &amp;lt;code&amp;gt;cli&amp;lt;/code&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
Example: &amp;lt;code&amp;gt;$#tSettings * parameter colorBackground string hlgray /t&amp;lt;/code&amp;gt;Example: &amp;lt;code&amp;gt;$#tSettings * parameter colorPrompt string 0:250:128 /t&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;currentLine&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;lineNumber&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;lineNumbers&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;on&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;off&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;outputMode&amp;lt;/code&amp;gt;&lt;br /&gt;
| The following values are supported:&lt;br /&gt;
* &amp;lt;code&amp;gt;overwrite&amp;lt;/code&amp;gt; - overwrites old content with new content&lt;br /&gt;
* &amp;lt;code&amp;gt;append&amp;lt;/code&amp;gt; - appends new content to old content&lt;br /&gt;
* &amp;lt;code&amp;gt;overwriteLastLine&amp;lt;/code&amp;gt; - overwrites the last line&lt;br /&gt;
* &amp;lt;code&amp;gt;newLine&amp;lt;/code&amp;gt; - which appends new data on a new line&lt;br /&gt;
&lt;br /&gt;
Example: &amp;lt;code&amp;gt;$#tSettings * parameter outputMode string overwriteLastLine /T&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;outputLineLimit&amp;lt;/code&amp;gt;&lt;br /&gt;
| If set to a number higher than zero, the control will limit the number of lines displayed. This is particularly useful when using a &amp;quot;&amp;lt;code&amp;gt;log&amp;lt;/code&amp;gt;&amp;quot; type edit box.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;prompt&amp;lt;/code&amp;gt;&lt;br /&gt;
| the CLI prompt, e.g. &amp;lt;code&amp;gt;&amp;amp;quot;&amp;amp;gt;&amp;amp;nbsp;&amp;amp;quot;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;&amp;amp;quot;#&amp;amp;nbsp;&amp;amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;readonly&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;on&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;off&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;showLine&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;lineNumber&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;type&amp;lt;/code&amp;gt;&lt;br /&gt;
| The following values are supported:&lt;br /&gt;
* &amp;lt;code&amp;gt;edit&amp;lt;/code&amp;gt; - a normal edit box&lt;br /&gt;
* &amp;lt;code&amp;gt;log&amp;lt;/code&amp;gt; - read-only, append mode, caret off&lt;br /&gt;
* &amp;lt;code&amp;gt;code&amp;lt;/code&amp;gt; - read-only, breakpoints on, linenumbers on, caret off and uses {{STX}} syntax highlighting&lt;br /&gt;
* &amp;lt;code&amp;gt;cli&amp;lt;/code&amp;gt; - the command line interface&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;waitforinput&amp;lt;/code&amp;gt;&lt;br /&gt;
| If set to &amp;quot;&amp;lt;code&amp;gt;on&amp;lt;/code&amp;gt;&amp;quot;, key messages will be passed on to the shell without the CLI processing them in any other way. This can, e.g., be used by the console getc command to wait for the user to input a character. When the key processing should continue, this parameter should be set to &amp;quot;&amp;lt;code&amp;gt;off&amp;lt;/code&amp;gt;&amp;quot;.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Note again that parameters you supply in the control table are &amp;#039;&amp;#039;ignored&amp;#039;&amp;#039; &amp;#039;&amp;#039;unless&amp;#039;&amp;#039; tagged.&lt;br /&gt;
&lt;br /&gt;
Important: Once a setting has been applied, the tag will be &amp;#039;&amp;#039;removed&amp;#039;&amp;#039;. So, if you want to change the setting at a later time, you need to tag it again.&lt;br /&gt;
&lt;br /&gt;
==== Additional options for the EDIT control ====&lt;br /&gt;
&lt;br /&gt;
{|class=&amp;quot;keinrahmen&amp;quot;&lt;br /&gt;
! Option&lt;br /&gt;
! Meaning&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;/Integer&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;/Number&amp;lt;/code&amp;gt;&lt;br /&gt;
| Input field must contain a valid floating-point number (&amp;lt;code&amp;gt;/Number&amp;lt;/code&amp;gt;) or an integer (&amp;lt;code&amp;gt;/Integer&amp;lt;/code&amp;gt;), or a numeric expression of the respective type; expressions are evaluated before assigned to &amp;lt;var&amp;gt;var&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&amp;lt;/var&amp;gt; (not applicable/available if &amp;lt;var&amp;gt;var&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&amp;lt;/var&amp;gt; is a table).&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;/Password&amp;lt;/code&amp;gt;&lt;br /&gt;
| Input is hidden; an asterisk, &amp;amp;quot;&amp;lt;code&amp;gt;*&amp;lt;/code&amp;gt;&amp;amp;quot; is displayed for each entered character&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;/Multiline&amp;lt;/code&amp;gt;&lt;br /&gt;
| Allow multiline input.&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;/Keystroke&amp;lt;/code&amp;gt;&lt;br /&gt;
| Send &amp;lt;code&amp;gt;[[Programmer Guide/Shell Items/Dialog/DISPLAY and DIALOG Messages|UPDATE]]&amp;lt;/code&amp;gt; message to shell for each entered character; otherwise the update message is only sent if the input is completed (another control is selected).The enter key is a special case; for /Multiline edit boxes, the enter key is used for line breaks, whilst for single line edit boxes, the enter key sends a &amp;lt;code&amp;gt;[[Programmer Guide/Shell Items/Dialog/DISPLAY and DIALOG Messages|COMMAND]]&amp;lt;/code&amp;gt; message (since {{STX}} version 3.6.0). Note that the enter key for a single line edit box also sends the same command as the default button (if one is defined - see &amp;lt;code&amp;gt;BUTTON&amp;lt;/code&amp;gt;).&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;/F[=PCAFS]&amp;lt;/code&amp;gt;&lt;br /&gt;
| If &amp;#039;&amp;#039;no&amp;#039;&amp;#039; modifier is specified, all keys are forwarded. Otherwise, the listed modifiers will come into effect. Any combination of the modifiers is allowed. The modifiers have the following meaning:&lt;br /&gt;
* &amp;lt;code&amp;gt;P&amp;lt;/code&amp;gt; - printable keys&lt;br /&gt;
* &amp;lt;code&amp;gt;C&amp;lt;/code&amp;gt; - control keys (ctrl, shift, alt, alt-gr)&lt;br /&gt;
* &amp;lt;code&amp;gt;A&amp;lt;/code&amp;gt; - action keys (left, right, esc, return etc.&lt;br /&gt;
* &amp;lt;code&amp;gt;F&amp;lt;/code&amp;gt; - function keys (F1-F24)&lt;br /&gt;
* &amp;lt;code&amp;gt;S&amp;lt;/code&amp;gt; - sticky keys (caps lock, num lock, scroll lock)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
See [[Programmer_Guide/Shell_Items/Dialog/Dialog_Controls#Common_arguments|Common arguments]] for a description of the parameters not described here.&lt;/div&gt;</summary>
		<author><name>Jw</name></author>
	</entry>
</feed>