WoW:API EditBox SetAutoFocus

Revision as of 08:55, 20 September 2006 by WoWWiki>Watchout

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.