Quote Originally Posted by ZorbaTHut View Post
Quote Originally Posted by dOxxx View Post
I get an error when I use X/Y offsets with SetPoint and the LEFT/RIGHT/TOP/BOTTOM anchors. As long as I use the correct axis offset and the other axis offset is 0, I don't see why it shouldn't work.For example:
Code:
SetPoint("LEFT", parent, "LEFT", 5, 0) -- anchor frame's left to parent's left, offset by 5 in X
Code:
SetPoint("LEFT", parent, "LEFT", 5, 5) -- invalid due to non-zero Y offset
Both of these usages give the "incorrect function usage" error on Live currently.
We're being a little paranoid with regards to SetPoint() parameter ordering. Valid parameters:
Code:
SetPoint("LEFT", parent, "LEFT", 5, nil)
This way is a little more resilient against typos.
Jump to post...