View Single Post
08-12-06, 06:01 AM   #1
neostorm
A Murloc Raider
Join Date: Aug 2006
Posts: 6
component Access/Tip List

I'm rather new to the xml so i'm creating a list of ways to access components to help me and others.

CheckBoxes
Code:
--Returns (1 | nul) (checked | unchecked)
local TextThenData = (getglobal("Test5Form".."CheckButton1")):GetChecked();

MultilinedEditBox
Code:
--This Get's the Text from a Edit box
local editboxtext = (getglobal("Test5Form".."MultilineEditBox1".."Edit")):GetText();

ScrollingMessageFrame
Code:
--This addes Text to the frame
getglobal("Test3Form".."ScrollingMessageFrame1"):AddMessage("Test");
Lables
Originally Posted by Nulkris
The UI naming system substitutes $parent with the name of the parent object. So to access the actual FontString object within the Label, you can do:

If the name of the Label is $parentLabel, and your form name is TestForm you would access it by:
Code:
local fs = getglobal("TestForm".."Label".."Label")
where the names are separated to clarify the splits.

If you just called your Label TitleText, then the code is:
Code:
local fs = getglobal("TitleText".."Label");

I'll add more as i learn/find out Please post any others if feel they are helpful

Last edited by neostorm : 08-14-06 at 12:58 AM.
  Reply With Quote