From the code you posted, it seems like you didn’t change the frame position, it is itself in the center of the screen (that’s the default position), so it is expected that a button parented to it, and set to position (0,0,0), will also be at the center of the screen. Changing a frame’s size doesn’t change its position.
Also, Code Snippets is for working pieces of code, this should probably be in Scripting Issues.
I am a bit confused about frame center and origin.
Usually in gui frameworks, things are a bit more simple, I think normally is when I modify the appearance of a property that changes its look, the change should propagate to all other properties that in sum have same effect. Why I would want to change the button’s origin ?? Or I missed something, maybe its usefull when you have complex polygon shaped Frames. Thanks for you help.