<doc>
  <legacy_id>1329</legacy_id>
  <name>lockText</name>
  <type>property</type>
  <syntax>
    <example>set the lockText of <i>field</i> to {true | false}</example>
  </syntax>
  <library></library>
  <objects>
    <field/>
  </objects>
  <synonyms>
  </synonyms>
  <classification>
    <category>User Interaction</category>
  </classification>
  <references>
    <command tag="focus">focus Command</command>
    <command tag="disable">disable Command</command>
    <function tag="mouseCharChunk">mouseCharChunk Function</function>
    <message tag="linkClicked">linkClicked Message</message>
    <property tag="listBehavior">listBehavior Property</property>
    <property tag="allowInlineInput">allowInlineInput Property</property>
    <property tag="cantModify">cantModify Property</property>
  </references>
  <history>
    <introduced version="1.0">Added.</introduced>
  </history>
  <platforms>
    <mac/>
    <windows/>
    <linux/>
    <ios/>
    <android/>
  </platforms>
  <classes>
    <desktop/>
    <server/>
    <web/>
    <mobile/>
  </classes>
  <security>
  </security>
  <summary>Specifies whether the contents of a <keyword tag="field">field</keyword> can be <property tag="selected">selected</property> and changed by the user.</summary>
  <examples>
    <example>set the lockText of the foundField to false</example>
  </examples>
  <description>
    <p>Use the <b>lockText</b> <glossary tag="property">property</glossary> to prevent users from changing the text in a <keyword tag="field">field</keyword>.</p><p/><p><b>Value:</b></p><p>The <b>lockText</b> of a <keyword tag="field">field</keyword> is true or false.</p><p/><p>By default, the <b>lockText</b> <glossary tag="property">property</glossary> of newly created <glossary tag="field">fields</glossary> is set to false.</p><p/><p><b>Comments:</b></p><p>When a field's <b>lockText</b> <glossary tag="property">property</glossary> is false, the <keyword tag="field">field</keyword> can be edited: the user can <command tag="select">select</command> text, delete text, type, cut, copy, and paste. The <property tag="cursor">cursor</property> becomes an I-beam when the <glossary tag="mouse pointer">mouse pointer</glossary> is over the <keyword tag="field">field</keyword>. When the user clicks in the <keyword tag="field">field</keyword>, no <message tag="mouseDown">mouseDown</message>, <message tag="mouseUp">mouseUp</message>, <message tag="mouseStillDown">mouseStillDown</message>, <message tag="mouseDoubleDown">mouseDoubleDown</message>, or <message tag="mouseDoubleUp">mouseDoubleUp</message> <glossary tag="message">messages</glossary> are sent. (However, if the user Control-clicks or right-clicks, these <glossary tag="message">messages</glossary> are sent regardless of the <glossary tag="field">field's</glossary> <b>lockText</b> setting.)</p><p/><p>When a field's <b>lockText</b> <glossary tag="property">property</glossary> is true, the user cannot edit the contents of the <keyword tag="field">field</keyword>. The <property tag="cursor">cursor</property> does not change when the <glossary tag="mouse pointer">mouse pointer</glossary> is over the <keyword tag="field">field</keyword>, and clicking the <keyword tag="field">field</keyword> sends all normal mouse <glossary tag="message">messages</glossary> to it. (A <glossary tag="handler">handler</glossary> can change the contents of a <keyword tag="field">field</keyword> with the <command tag="put">put</command> <glossary tag="command">command</glossary> and can <command tag="select">select</command> text using the <command tag="select">select</command> <glossary tag="command">command</glossary>, regardless of the <b>lockText</b> setting.)</p><p/><p>If a field's <b>lockText</b> and <property tag="traversalOn">traversalOn</property> <property tag="properties">properties</property> are both set to true, the user can <command tag="select">select</command> text, but not change it, and can scroll within the <keyword tag="field">field</keyword> using the keyboard. If the <b>lockText</b> is true and the <property tag="traversalOn">traversalOn</property> is false, the user can neither <command tag="select">select</command> nor edit the <glossary tag="field">field's</glossary> text. If the <b>lockText</b> is false and the <property tag="traversalOn">traversalOn</property> is true, the field can be edited.</p>
  </description>
</doc>