Thread: Dragging frames
View Single Post
08-17-07, 04:24 PM   #1
jaliborc
A Chromatic Dragonspawn
 
jaliborc's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2007
Posts: 196
Question Reanchoring Quest Watch

When I try to anchor the Quest Watch to a new frame (example: frame1) OnLoad, it dos not work right.
But if I do it On Click it works:

function frame1_OnLoad
QuestWatchFrame:ClearAllPoints()
QuestWatchFrame:SetPoint("BOTTOMLEFT", "frame1", "BOTTOMLEFT", 5, 8)
end

function button1_OnClick
QuestWatchFrame:ClearAllPoints()
QuestWatchFrame:SetPoint("TOPLEFT", "frame1", "TOPLEFT", 5, 8)
end
Why it does not work?

Last edited by jaliborc : 08-20-07 at 09:44 AM.
  Reply With Quote