WoW:API EditBox SetText: Difference between revisions
Jump to navigation
Jump to search
SetText -Documentation by DerGhulbus-
(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]] |
Revision as of 04:55, 21 May 2007
← Widget API ← EditBox < SetText
editBox:SetText(String)
Sets the editBox's text to the specified string.
Parameters
Arguments
- ("String")
- String
- the string you want to appear in the EditBox
Returns
???
Details
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.
TestFourFormMultiEditBoxEdit:SetText("This is a test.");