View Single Post
03/31/17, 08:11 AM   #5
fritzOSU03
 
fritzOSU03's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2016
Posts: 19
Originally Posted by Baertram View Post
Use control:SetAnchorr(...) + control:SetParent(MY_GUI) to connect it to MY_GUI.
Should be enough to move the top level control with all anchored children by drag & dropping the children.
This was a huge help. I am able to move the window by the header label now that I've set MY_GUI as the parent of the header and the header as the parent of the title label. I know, these elements weren't mentioned before. However, no matter where I put MY_GUI_Container:SetParent(MY_GUI) in my lua file, I still can't move the window by any of the virtual elements. I'm setting the RowTemplate as the parent of each of the elements and I'm setting MY_GUI_Container as the parent of each template on creation. I'm also setting the sizes and anchors for each virtual item as I go. So as to alleviate any confusion, my full xml and lua scripts are below.

XML Script
Warning: Spoiler


Lua Script
Warning: Spoiler

Last edited by fritzOSU03 : 03/31/17 at 08:57 AM. Reason: Code cleanup and clarification.
  Reply With Quote