May I ask a related follow-up question?
I would like to place a button divider texture in my frame:
Code:
local myFrame = CreateFrame("Frame", "cosFix_SetFactorFrame", UIparent, "ButtonFrameTemplate")
myFrame:SetPoint("TOPLEFT")
ButtonFrameTemplate_HidePortrait(myFrame)
myFrame:SetFrameStrata("HIGH")
myFrame:SetWidth(430)
myFrame:SetHeight(220)
myFrame.exportButton = CreateFrame("Button", nil, f, "UIPanelButtonTemplate")
myFrame.exportButton:SetPoint("TOPRIGHT", -20, 0)
myFrame.exportButton:SetText("Export")
myFrame.exportButton:SetWidth(70)
myFrame.exportButton.btnDivLeft = f.NineSlice:CreateTexture("cosFix_btnDivLeft", "BORDER")
myFrame.exportButton.btnDivLeft:SetPoint("RIGHT", f.exportButton, "LEFT", -10, 0)
myFrame.exportButton.btnDivLeft:SetAtlas("UI-Frame-BtnDivLeft", true)
It should look like this:
But what I get is:
(The -10 offset is there on purpose for testing.)
But how can I get on top of the NineSlice border texture??