WoW:API EditBox SetText: Difference between revisions

(linkification, notoc and headings)
Line 21: Line 21:


You should call a SetText("") every time you read from an EditBox, so the command line is free for the next input.
You should call a SetText("") every time you read from an EditBox, so the command line is free for the next input.
==MultiLineEditBox==
When using a MultiLineEditBox, there is a sub-control called Edit the actually contains the text.
For example, if the form name is "TestFourForm" and the MultilineEditBox control name is $parentMultiEditBox then you would use '''TestFourFormMultiEditBoxEdit''' to put text into the control.
<!-- begin code -->
TestFourFormMultiEditBoxEdit:SetText("This is a test.");
<!-- end code -->


==Also See==
==Also See==
[[UI Escape Sequences]]
[[UI Escape Sequences]]
Anonymous user