Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
Line 24: Line 24:
 
==MultiLineEditBox==
 
==MultiLineEditBox==
 
When using a MultiLineEditBox, there is a sub-control called Edit the actually contains the text.
 
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 woudl call '''TestFourFormMultiEditBoxEdit:SetText("This is a test.");''' to put some text in the box.
+
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==

Revision as of 04:55, 21 May 2007

SetText -Documentation by DerGhulbus-
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.");

Also See

UI Escape Sequences