WoW:API EditBox SetAutoFocus: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m (Move page script moved page API EditBox SetAutoFocus to API EditBox SetAutoFocus without leaving a redirect) |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
{{ | {{widgetmethod}} __NOTOC__ | ||
Sets whether the cursor should automatically focus on the EditBox when it is shown. | |||
EditBox:SetAutoFocus(autoFocus) | |||
== Arguments == | |||
:; autoFocus : [[Boolean]] - Whether autofocus should be enabled | |||
== 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. |
Latest revision as of 04:45, 15 August 2023
← Widget API ← EditBox < SetAutoFocus
Sets whether the cursor should automatically focus on the EditBox when it is shown.
EditBox:SetAutoFocus(autoFocus)
Arguments[edit]
- autoFocus
- Boolean - Whether autofocus should be enabled
Returns[edit]
- nil
Example[edit]
<Scripts> <OnLoad> myEditBox:SetAutoFocus( false ); </OnLoad> </Scripts>
Result
Will disable AutoFocus on myEditBox when the addon loads.
Details[edit]
- Initial setting appears to be true.