Wikia

WoWWiki

API EditBox HighlightText

Revision as of 23:50, July 14, 2008 by Charibot (Talk | contribs)

(diff) ←Older revision | Latest revision (diff) | Newer revision → (diff)
102,790pages on
this wiki
Talk0
Widget API ← EditBox < HighlightText

Highlights the text in an EditBox.

EditBox:HighlightText([start], [end])

Parameters Edit

Arguments Edit

Start 
[Optional] Integer - the position at which to start the highlight and defaults to 0 if omitted.
End 
[Optional] Integer - the position at which to stop the highlight and defaults to the end of the string if omitted.

Details Edit

The position before the first character is 0.

Leaving out both parameters, as in EditBox:HighlightText(), will highlight the entire EditBox content.

Around Wikia's network

Random Wiki