So using this code
Code:
--Right Chat Frame (if it exists)
FCF_SetLocked(ChatFrame3, nil)
FCF_SetChatWindowFontSize(self, ChatFrame3, fontsize2)
ChatFrame3:ClearAllPoints()
ChatFrame3:SetPoint(unpack(def_position2))
ChatFrame3:SetWidth(chat_width2)
ChatFrame3:SetHeight(chat_height2)
ChatFrame3:SetFrameLevel(8)
ChatFrame3:SetUserPlaced(true)
for i=1,10 do local cf = _G["ChatFrame"..i] FCF_SetWindowAlpha(cf, 0) end
FCF_SavePositionAndDimensions(ChatFrame3)
FCF_SetLocked(ChatFrame3, 1)
end
gives this error here
Code:
Message: Interface\AddOns\BobUI\chat.lua:79: Frame ChatFrame3 is not movable or resizable
Time: 05/11/12 05:02:27
Count: 1
Stack: [C]: in function `SetUserPlaced'
Interface\AddOns\BobUI\chat.lua:79: in function `SetChat'
Interface\AddOns\BobUI\chat.lua:91: in function <Interface\AddOns\BobUI\chat.lua:91>
Locals: (*temporary) = ChatFrame3 {
0 = <userdata>
checkedGMOTD = true
flashTimer = 0
isInitialized = 1
tellTimer = 49803.928
resizeButton = ChatFrame3ResizeButton {
}
buttonFrame = ChatFrame3ButtonFrame {
}
oldAlpha = 0
channelList = <table> {
}
clickAnywhereButton = ChatFrame3ClickAnywhereButton {
}
isDocked = 1
editBox = ChatFrame3EditBox {
}
name = "G,S,W"
AddMessage = <function> defined @Interface\AddOns\BobUI\chat.lua:350
buttonSide = "right"
zoneChannelList = <table> {
}
defaultLanguage = "Common"
messageTypeList = <table> {
}
}
(*temporary) = true
What I would like to do is since this error only shows up if ChatWindow3 is locked or docked with the main chat window is undock/unlock it and move it to the proper place.
Unfortunately, I'm an .lua novice and I feel that I'm in over my head here atm since FCF_UnDockFrame(ChatFrame3) doesn't work.
if you want a more in depth look at what I'm working on the file I'm working on is the chat.lua file in my UI package (Interface>Addons>BobUI>chat.lua)
http://www.wowinterface.com/download...502-BobUI.html