I'm currently using a ScrollFrame to show some content (frames, textures, and stuff) 'inside' a container frame.
'inside' here means the contents are clipped at the container frame borders.
An basic example could be
Code:
local containerFrameObj = CreateFrame("ScrollFrame", "PeonManagerContainer", UIParent)
containerFrameObj.ScrollValue = 0
local contentObj = CreateFrame("Frame", "PeonManagerContent", containerFrameObj)
containerFrameObj:SetScrollChild(contentObj)
local stuffObj = CreateFrame("Button", "Stuff", contentObj)
With this sample code every child of PeonManagerContent (stuffObj here) is only visible within the borders of PeonManagerContainer.
My problem with this: unfortunately the ScrollFrame widget don't places the content stuff according to the content's parent/child structure. Furthermore the frame level and the frame strata are ignored inside a ScrollFrame (or at least they’re heavily buged). Due to this the ScrollFrame is more or less unusable for me – I must set frame levels and stratas for the contents.
But how could I implement this without a ScrollFrame? I have no ideas. :/