View Single Post
02-18-11, 12:07 PM   #10
Grimsin
A Molten Giant
 
Grimsin's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2006
Posts: 990
for bnid = 1, #HelpHeaders do

LeftScrollBar.scrollChild.button = CreateFrame('button', "HHeaderButton" .. bnid, LeftScrollBar.scrollChild)

LeftScrollBar.scrollChild.button.text = LeftScrollBar.scrollChild.button:CreateFontString("HHeaderButtonText" .. bnid, 'DIALOG')
LeftScrollBar.scrollChild.button.text:SetFont([[Fonts\FRIZQT__.TTF]], 14)
LeftScrollBar.scrollChild.button.text:SetPoint("CENTER", LeftScrollBar.scrollChild.button, "CENTER", 0, 0)
LeftScrollBar.scrollChild.button.text:SetTextColor(.50, .90, .80, 1)

end

My bigest question is... where it is setting "HHeaderButton" .. bnid which should make the name of the frame HHeaderButton1 right, so what do i use later to access it? LeftScrollBar.ScrollChild.button.HHeaderButton1? or just HHeaderButton1 or ugh...
__________________
"Are we there yet?"

GrimUI
[SIGPIC][/SIGPIC]
  Reply With Quote