WoW:API EditBox SetAutoFocus: Difference between revisions

m
Move page script moved page API EditBox SetAutoFocus to WoW:API EditBox SetAutoFocus without leaving a redirect
(Set automatic keyboard inline for an EditBox upon Show. Default setting is true.)
 
m (Move page script moved page API EditBox SetAutoFocus to WoW:API EditBox SetAutoFocus without leaving a redirect)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Arguments: true, false.
{{widgetmethod}} __NOTOC__


Sets the autofocus of an EditBox UIObject to either true or false.


AutoFocus causes the keyboard inline to automatically enter the EditBox when the EditBox is shown. Otherwise Focux is established by clicking on the EditBox.
Sets whether the cursor should automatically focus on the EditBox when it is shown.
EditBox:SetAutoFocus(autoFocus)


Initial setting appears to be true.


Example:
== Arguments ==
:; autoFocus : [[Boolean]] - Whether autofocus should be enabled


  <Scripts>
        <OnLoad>
              myEditBox:SetAutoFocus( false );
        </OnLoad>
  </Scripts>


--Will disable AutoFocus on myEditBox when the addon loads.
== Returns ==
:nil
 
 
== Example ==
<Scripts>
    <OnLoad>
        myEditBox:SetAutoFocus( false );
    </OnLoad>
</Scripts>
 
<big>'''Result'''</big>
 
Will disable AutoFocus on myEditBox when the addon loads.
 
 
== Details ==
: Initial setting appears to be true.
Anonymous user