Pauses between frame functions?

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

Casull

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()?

by Slouken | 13/05/2007 16:33:57

Slouken

Make sure that you're setting the frame's point to something that is already resolved. Otherwise it sounds like it should work, and you can post a minimal test case for people to look at.

Bump! Recently Bumped Threads

 

Blizzard Announcement Recent Blizzard Announcements

 

We suggest