WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   General Authoring Discussion (https://www.wowinterface.com/forums/forumdisplay.php?f=20)
-   -   component Access/Tip List (https://www.wowinterface.com/forums/showthread.php?t=5757)

neostorm 08-12-06 06:01 AM

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
Quote:

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

Herleybob 09-09-07 12:22 AM

how would you set the text of a label?


All times are GMT -6. The time now is 04:31 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI