<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.dabo.leafe.com/index.php?action=history&amp;feed=atom&amp;title=DEditBox</id>
	<title>DEditBox - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.dabo.leafe.com/index.php?action=history&amp;feed=atom&amp;title=DEditBox"/>
	<link rel="alternate" type="text/html" href="https://wiki.dabo.leafe.com/index.php?title=DEditBox&amp;action=history"/>
	<updated>2026-11-21T20:58:13Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.12</generator>
	<entry>
		<id>https://wiki.dabo.leafe.com/index.php?title=DEditBox&amp;diff=4081&amp;oldid=prev</id>
		<title>Ed: Created page with &quot;This control allows editing of string data of unlimited size, spanning more than one line. The control will create scrollbars as necessary, and can edit string or unicode data...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.dabo.leafe.com/index.php?title=DEditBox&amp;diff=4081&amp;oldid=prev"/>
		<updated>2020-05-12T15:34:04Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;This control allows editing of string data of unlimited size, spanning more than one line. The control will create scrollbars as necessary, and can edit string or unicode data...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This control allows editing of string data of unlimited size, spanning more than one line. The control will create scrollbars as necessary, and can edit string or unicode data.&lt;br /&gt;
&lt;br /&gt;
Some of the more useful properties:&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Alignment&amp;#039;&amp;#039;&amp;#039; (str): Can be one of &amp;lt;code&amp;gt;Left&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;Right&amp;lt;/code&amp;gt;, or &amp;lt;code&amp;gt;Center&amp;lt;/code&amp;gt;. Determines the position of the text within the control area.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;SelectedText&amp;#039;&amp;#039;&amp;#039; (str): Returns just the text selected by the user, or an empty string.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;SelectionStart&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;SelectionEnd&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;SelectionLength&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;InsertionPosition&amp;#039;&amp;#039;&amp;#039; (int): Determines various aspects of the selected text in the control. Note that these properties are inter-dependent, so changing one can change one or more of the others.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ReadOnly&amp;#039;&amp;#039;&amp;#039; (bool): allows the user to select and copy the text, but they cannot change it. This is different than &amp;lt;code&amp;gt;Enabled=False&amp;lt;/code&amp;gt;, where they cannot interact with the control at all.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;SelectOnEntry&amp;#039;&amp;#039;&amp;#039; (bool): When &amp;lt;code&amp;gt;True&amp;lt;/code&amp;gt;, the contents of the control are selected when the control receives focus.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;PasswordEntry&amp;#039;&amp;#039;&amp;#039; (bool): when &amp;lt;code&amp;gt;True&amp;lt;/code&amp;gt;, the entered text is hidden, and bullets are shown instead. This must be set when the control is created.&lt;br /&gt;
&lt;br /&gt;
There are also two convenience methods:&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;scrollToBeginning()&amp;#039;&amp;#039;&amp;#039; - moves the insertion point to the beginning of the text in the control. Equivalent to setting &amp;lt;code&amp;gt;self.InsertionPoint = 0&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;scrollToEnd()&amp;#039;&amp;#039;&amp;#039; - moves the insertion point to the end of the text in the control. Equivalent to setting &amp;lt;code&amp;gt;self.InsertionPoint = len(self.Value)&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Some of the more common events:&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;KeyChar&amp;#039;&amp;#039;&amp;#039;: raised when a key is pressed. You can access information about that key and any modifiers with the following:&lt;br /&gt;
** &amp;#039;&amp;#039;&amp;#039;evt.keyChar&amp;#039;&amp;#039;&amp;#039;: contains the character that was typed.&lt;br /&gt;
** &amp;#039;&amp;#039;&amp;#039;evt.keyCode&amp;#039;&amp;#039;&amp;#039;: contains the internal number that represents the typed character. Will usually be the same as the ASCII value of that character.&lt;br /&gt;
** &amp;#039;&amp;#039;&amp;#039;evt.altDown&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;evt.commandDown&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;evt.controlDown&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;evt.metaDown&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;evt.shiftDown&amp;#039;&amp;#039;&amp;#039;: these will be &amp;lt;code&amp;gt;True&amp;lt;/code&amp;gt; if the corresponding modifier key was pressed when the key event occurred.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;GotFocus&amp;#039;&amp;#039;&amp;#039;: raised when the control receives focus.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;LostFocus&amp;#039;&amp;#039;&amp;#039;: raised when the control loses focus.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
See the [https://web.archive.org/web/20110909131047/http://paul.dabodev.com/doc/api/dabodoc/ Dabo Class Documentation] for an exhaustive documentation of this control&amp;#039;s Properties, Events and Methods. (Note that this documentation is no longer live, but it&amp;#039;s still available via the Internet Archive).&lt;/div&gt;</summary>
		<author><name>Ed</name></author>
	</entry>
</feed>