Thread Tools Display Modes
12-19-09, 01:22 AM   #1
alimjocox
A Warpwood Thunder Caller
AddOn Author - Click to view addons
Join Date: Oct 2009
Posts: 96
ChatFrame1:SetPoint()

Code:
ChatFrame1:ClearAllPoints()
ChatFrame1:SetPoint("BOTTOMLEFT", UIParent, 10, 10)
ChatFrame1:SetWidth(321)
ChatFrame1:SetHeight(121)
can anyone tell me why this isn't enough to move my ChatFrame1 ? It sets the width and height. I'm a Lua noob but im trying to learn

((just a small section of the entire addon))
  Reply With Quote
12-19-09, 01:30 AM   #2
Vrul
A Scalebane Royal Guard
 
Vrul's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2007
Posts: 404
Code:
ChatFrame1:ClearAllPoints()
ChatFrame1:SetPoint('BOTTOMLEFT', UIParent, 'BOTTOMLEFT', 10, 10)
ChatFrame1:SetWidth(321)
ChatFrame1:SetHeight(121)
  Reply With Quote
12-19-09, 01:33 AM   #3
alimjocox
A Warpwood Thunder Caller
AddOn Author - Click to view addons
Join Date: Oct 2009
Posts: 96
tried that as well it doesnt work

im using idChat addon, is there something that I miss which clashes or stops it from moving?
  Reply With Quote
12-19-09, 01:45 AM   #4
Vrul
A Scalebane Royal Guard
 
Vrul's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2007
Posts: 404
You could try making it so the frame can't be moved after you move it with:
Code:
ChatFrame1:ClearAllPoints()
ChatFrame1:SetPoint('BOTTOMLEFT', UIParent, 'BOTTOMLEFT', 10, 10)
ChatFrame1:SetWidth(321)
ChatFrame1:SetHeight(121)

local function DoNothing() end
ChatFrame1.ClearAllPoints = DoNothing
ChatFrame1.SetPoint = DoNothing
  Reply With Quote
12-19-09, 02:04 AM   #5
alimjocox
A Warpwood Thunder Caller
AddOn Author - Click to view addons
Join Date: Oct 2009
Posts: 96
thx alot Vrul that did it

just wondering if ur bothered to answer. do u have an idea on what wouldve stopped it from moving originally?
  Reply With Quote
12-19-09, 02:23 AM   #6
Sythalin
Curse staff
 
Sythalin's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2006
Posts: 680
That's an odd behavior. Been coming across a lot of those lately....
  Reply With Quote
12-19-09, 02:33 AM   #7
Vrul
A Scalebane Royal Guard
 
Vrul's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2007
Posts: 404
Originally Posted by alimjocox View Post
do u have an idea on what wouldve stopped it from moving originally?
It was moving, it was just getting moved right back again.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » ChatFrame1:SetPoint()


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off