Naive question here but here goes: I have a window with 4 buttons along the bottom edge. I want them to be equally placed and to remain so when the window is resized. Put more explicitly, button 1 and button 4 would be positioned at the corners (i.e., button 1 at BOTTOMLEFT, 10,10 and button 4 at BOTTOMRIGHT, 10,10) while buttons 2 and 3 would be positioned equidistant from the corners and each other.
I seem unable to grok gamepedia’s description of Region:SetPoint() and have been experimenting with all kinds of placements and offsets, but when I resize the window the buttons do not remain equally spaced. Here, for example, is a code fragment from my AddOn that places the buttons approximately the way I like. But when I resize the window the button’s placements all go to hell. ![]()
createSelectButton(f, “BOTTOMRIGHT”, -30, 10)
createPrintButton(f, “BOTTOMRIGHT”, -215, 10)
createSummaryButton(f, “BOTTOM”, 0, 10)
createClearButton(f, “BOTTOMLEFT”, 220, 10)
createResetButton(f, “BOTTOMLEFT”, 10, 10)
Does some combination of placements and offsets exist that would cause the buttons 2 and 3 to remain proportionally the same distance apart when the window was resized?
Thanks,