by Casull | 13/05/2007 14:34:47

Hey, I am having some issues with frame creation code in my addon. I have a class that wraps a frame called Host; Host's new() function creates that frame. It goes like this:
Create frame, set its textures Give frame dimensions Set frame's point call another function: --->call GetTop() on frame
and that last one is giving me a nil value. Still, if I /dump the GetTop() ingame without having changed anything, it gives me a value. I believed that for GetTop()to return a meaningful value, the frame needs to have height, and it needs to be placed somewhere, yet with both of these requirements fulfilled I'm getting nil values. This leads me to ask - is there some kind of pause between when you call SetPoint(), SetHeight(), SetWidth() and when you can call GetTop()? |