Quote Originally Posted by ZorbaTHut View Post
Quote Originally Posted by Lorandii View Post
Based on the current documentation, I don't understand why CreateContext is needed. I understand CreateFrame, but how does CreateContext impact the frame? Could someone please elaborate?
CreateContext is needed to give frames a parent. All frames must have a parent frame, and UIParent isn't technically a frame, it's a layout. CreateContext is what gives you that "first" frame. In the future, once the API exists to move addon frames in front of or behind Rift UI elements, Contexts will be the smallest unit that can be re-ordered relative to Rift UI elements. This all could theoretically be done with Frames instead, except that CreateContext proved the easiest solution thanks to some backend implementation details. At some point in the future I'd actually like to remove it (i.e. make it equivalent to CreateFrame()), but that may be some time off.
Jump to post...