Originally Posted by NickK
To use the second method you said, do i have to make a new TopLevelControl with the name of the control i want the label to show/hide? i.e ZO_FriendsList? Or just change the name of the label to name="$(parent)ZO_FriendsList"
|
Neither of those makes ZO_FriendsList your control's parent.
To make another control a parent to your control, either pass the the parent control (ZO_FriendList in your case) as the "parent" parameter in WINDOW_MANAGER:CreateControl. Or call :SetParent on your control. I suggest you look at the wiki to see the signature of each of these.