so then this should set the first button's text to general right? its telling me on the settext line that button1 does not exist... i also tried being literal and putting button[1] but then it tells me "button" does not exist.
lua Code:
for bnid = 1, #HelpHeaders do
LeftScrollBar.scrollChild.button[bnid] = CreateFrame('button', "HHeaderButton" .. bnid, LeftScrollBar.scrollChild)
LeftScrollBar.scrollChild.button[bnid].text = LeftScrollBar.scrollChild.button[bnid]:CreateFontString("HHeaderButtonText" .. bnid, 'DIALOG')
LeftScrollBar.scrollChild.button[bnid].text:SetFont([[Fonts\FRIZQT__.TTF]], 14)
LeftScrollBar.scrollChild.button[bnid].text:SetPoint("CENTER", LeftScrollBar.scrollChild.button[bnid], "CENTER", 0, 0)
LeftScrollBar.scrollChild.button[bnid].text:SetTextColor(.50, .90, .80, 1)
end
LeftScrollBar.scrollChild.button1.text:SetText("General")
i think the method of using LeftScrollBar.scrollChild.button[bnid] is not right for some reason.