mNo edit summary |
Ravas46950@legacy41566517 (talk | contribs) (Updated to match the current API boilerplate.) |
||
Line 1: | Line 1: | ||
+ | {{widgetmethod}} __NOTOC__ |
||
− | {{Stub/API}} |
||
− | Arguments: true, false. |
||
− | Sets the autofocus of an EditBox UIObject to either true or false. |
||
− | + | 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 |
||
+ | |||
+ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
+ | |||
+ | <big>'''Result'''</big> |
||
+ | |||
⚫ | |||
+ | |||
+ | |||
+ | == Details == |
||
⚫ |
Revision as of 14:25, 27 June 2007
The API is no longer being updated here until further notice. |
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>
Result
Will disable AutoFocus on myEditBox when the addon loads.
Details
- Initial setting appears to be true.