Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
WoW
Talk
English
Views
Read
Edit
History
More
Search
Navigation
Home
Random page
Help using wiki
Editions
for WoW
for WildStar
for Solar2D
Documentation
for WoW
for WildStar
Reference
WoW
⦁ FrameXML
⦁ AddOns
⦁ API
⦁ WoW Lua
WildStar
⦁ AddOns
⦁ API
⦁ WildStar Lua
Engine
Tools
What links here
Related changes
Special pages
Page information
Site
Recent Changes
Editing
WoW:Widget API
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== [[UIOBJECT EditBox|EditBox]] === EditBox additionally has all of the methods from [[#FontInstance|FontInstance]], plus the following: : {{id|API|EditBox|AddHistoryLine}}("text") - Add text to the edit history. : {{id|API|EditBox|ClearFocus}}() : {{id|API|EditBox|GetAltArrowKeyMode}}() - Return whether only alt+arrow keys work for navigating the edit box, not arrow keys alone. : {{id|API|EditBox|GetBlinkSpeed}}() - Gets the blink speed of the EditBox in seconds (added 1.11) : {{id|API|EditBox|GetCursorPosition}}() - Gets the position of the cursor inside the EditBox (added 2.3) : {{id|API|EditBox|GetHistoryLines}}() - Get the number of history lines for this edit box : {{id|API|EditBox|GetHyperlinksEnabled}}() (added 3.0.8) : {{id|API|EditBox|GetInputLanguage}}() - Get the input language. locale based, not in-game. : {{id|API|EditBox|GetMaxBytes}}() - Gets the maximum number bytes allowed in the EditBox (added 1.11) : {{id|API|EditBox|GetMaxLetters}}() - Gets the maximum number of letters allowed in the EditBox (added 1.11) : {{id|API|EditBox|GetNumLetters}}() - Gets the number of letters in the box. : {{id|API|EditBox|GetNumber}}() : {{id|API|EditBox|GetText}}() - Get the current text contained in the edit box. : {{id|API|EditBox|GetTextInsets}}() - Gets the text display insets for the EditBox (added 1.11) : {{id|API|EditBox|HighlightText}}([startPos, endPos]) - Set the highlight to all or some of the edit box text. : {{id|API|EditBox|Insert}}("text") - Insert text into the edit box. : {{id|API|EditBox|IsAutoFocus}}() - Determine if the EditBox has autofocus enabled (added 1.11) : {{id|API|EditBox|IsMultiLine}}() - Determine if the EditBox accepts multiple lines (added 1.11) : {{id|API|EditBox|IsNumeric}}() - Determine if the EditBox only accepts numeric input (added 1.11) : {{id|API|EditBox|IsPassword}}() - Determine if the EditBox performs password masking (added 1.11) : {{id|API|EditBox|SetAltArrowKeyMode}}(enable) - Make only alt+arrow keys work for navigating the edit box, not arrow keys alone. : {{id|API|EditBox|SetAutoFocus}}(state) - Set whether or not the editbox will attempt to get input focus when it gets shown. default: true (added 1.11) : {{id|API|EditBox|SetBlinkSpeed}} : {{id|API|EditBox|SetCursorPosition}}(position) - Set the position of the cursor within the EditBox (added 2.3) : {{id|API|EditBox|SetFocus}}() - Move input focus (the cursor) to this editbox : {{id|API|EditBox|SetFont}}("font", size[,"flags"]) - Set the font to use for display. : {{id|API|EditBox|SetHistoryLines}}() - Set the number of history lines to remember. : {{id|API|EditBox|SetHyperlinksEnabled}}(enableFlag) (added 3.0.8) : {{id|API|EditBox|SetMaxBytes}}(maxBytes) - Set the maximum byte size for entered text. : {{id|API|EditBox|SetMaxLetters}}(maxLetters) - Set the maximum number of letters for entered text. : {{id|API|EditBox|SetMultiLine}}(state) - Set the EditBox's multi-line state (added 1.11) : {{id|API|EditBox|SetNumber}}(number) : {{id|API|EditBox|SetNumeric}}(state) - Set if the EditBox only accepts numeric input (added 1.11) : {{id|API|EditBox|SetPassword}}(state) - Set the EditBox's password masking state (added 1.11) : {{id|API|EditBox|SetText}}("text") - Set the text contained in the edit box. : {{id|API|EditBox|SetTextInsets}}(l, r, t, b) : {{id|API|EditBox|ToggleInputLanguage}}()
Summary:
Please note that all contributions to AddOn Studio are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
AddOn Studio Wiki:Copyrights
for details).
Submissions must be written by you, or copied from a public domain or similar free resource (see
AddOn Studio Wiki:Copyrights
for details).
Cancel
Editing help
(opens in new window)