Wait, so are these buttons/frames that you are creating yourself? Or part of the default UI? Or...
If you're making them yourself, just use the parent frame you desire rather than UIParent when doing
CreateFrame().
Otherwise, you can also use frame:SetParent("parent")