View Single Post
05/01/14, 04:33 PM   #5
ingeniousclown
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 122
Originally Posted by NickK View Post
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.
  Reply With Quote