Quantcast
Referencing objects - WoWInterface
 
Thread Tools Display Modes
08-23-16, 05:59 PM   #1
TimothyLuke
A Fallenroot Satyr
 
TimothyLuke's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2010
Posts: 24
Referencing objects

Hi Everyone,

I asked this over in ACE land as im using ACEGUI but have not had a result so apologies for cross posting in advance. The original Post and the code is located https://forums.wowace.com/showthread.php?t=31389

What I am wondering is if I can reference objects via parent child relationship.

I have a logical structure for layout that looks like

frame, Layout container , tab container, textbox

can I reference this via something like

frame.layoutcontainer.tabcontainer.textbox:function()

The tab control expects that I "release objects" and recreate them each time I change tabs. What I want to be able to do is be able to use a function on a widget that is outside the tab container reference an object that I know will exist.
__________________
BattleNet: TimothyLuke#1860
WowLazyMacros/Curse/GitHub/WowInterface: TimothyLuke

Most Commonly Played Characters:
[email protected]'Remar
[email protected]
  Reply With Quote
08-23-16, 07:25 PM   #2
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,757
Of course. Frames are special tables. Just store the children in the table.
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Referencing objects

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off