API EditBox SetAutoFocus
From WoW Classic Wiki
More actions
Template:Stub/Begin This article or section is a World of Warcraft API stub. You can help expand it by clicking edit this page above.
- Please see How to edit API pages for a list of boilerplates and page tags to use for different types of API related pages.
- Please be aware of the new rules of API pages as, we no longer just slap "{{WoW API}}" at the bottom of pages.
Template:Stub/End 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.