WoW:API EditBox SetAutoFocus

Revision as of 19:01, 19 September 2006 by WoWWiki>Opuelas (Set automatic keyboard inline for an EditBox upon Show. Default setting is true.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Arguments: true, false.

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.

Initial setting appears to be true.

Example:

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

--Will disable AutoFocus on myEditBox when the addon loads.