<?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=DTextBox</id>
	<title>DTextBox - 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=DTextBox"/>
	<link rel="alternate" type="text/html" href="https://wiki.dabo.leafe.com/index.php?title=DTextBox&amp;action=history"/>
	<updated>2026-11-21T07:16:08Z</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=DTextBox&amp;diff=4080&amp;oldid=prev</id>
		<title>Ed: Created page with &quot;This control is used to display and edit a single line of text. If you need to edit multiple lines of text, use dEditBox. If you simply want to display some text, you migh...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.dabo.leafe.com/index.php?title=DTextBox&amp;diff=4080&amp;oldid=prev"/>
		<updated>2020-05-12T15:28:24Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;This control is used to display and edit a single line of text. If you need to edit multiple lines of text, use &lt;a href=&quot;/index.php?title=DEditBox&quot; title=&quot;DEditBox&quot;&gt;dEditBox&lt;/a&gt;. If you simply want to display some text, you migh...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This control is used to display and edit a single line of text. If you need to edit multiple lines of text, use [[dEditBox]]. If you simply want to display some text, you might want to use [[dLabel]] instead.&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;
----&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>