WoW:API EditBox HighlightText: Difference between revisions

m
Move page script moved page API EditBox HighlightText to WoW:API EditBox HighlightText without leaving a redirect
mNo edit summary
m (Move page script moved page API EditBox HighlightText to WoW:API EditBox HighlightText without leaving a redirect)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Highlights the text in a Textbox.
{{widgetmethod}}
{{API/Uncategorized}}


Params (start[, end])
Highlights the text in an EditBox.
Starts is the character to start highlighting at (0 => beginning), [end] is optional and defaults to the length.
Thus:


'''Editbox:HighlightText(0);'''
EditBox:HighlightText([start], [end])


will highlight the whole EditBox Content.
== Parameters ==
=== Arguments ===


----
:;Start : [Optional] Integer - the position at which to start the highlight and defaults to 0 if omitted.
{{WoW API}}
:;End : [Optional] Integer - the position at which to stop the highlight and defaults to the end of the string if omitted.
 
== Details ==
 
The position before the first character is 0.
 
Leaving out both parameters, as in '''EditBox:HighlightText()''', will highlight the entire EditBox content.
Anonymous user