Reply
Thread Tools Display Modes
Unread 09-15-13, 09:30 PM   #1
almty1
Premium Member
AddOn Author - Click to view addons
Join Date: Apr 2008
Posts: 13
SetChatWindowLocked not taking effect right away

I'm using the function below. The chat frame re-sizes and moves to the correct position. The issue I'm having is the Window is not locking unless I reload the UI a 2nd time.

Lua Code:
  1. function aegerUI_MoveChatFrame1()
  2.         ChatFrame1:ClearAllPoints()
  3.         ChatFrame1:SetHeight(225)  
  4.         ChatFrame1:SetWidth(380)
  5.         ChatFrame1:SetPoint('BOTTOMLEFT',UIParent,'BOTTOMLEFT',30,27)
  6.         ChatFrame1:SetUserPlaced(true);
  7.     SetChatWindowLocked(1,1)
  8. end
almty1 is offline   Reply With Quote
Unread 09-15-13, 10:24 PM   #2
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 9,691
Try using FCF_SetLocked(ChatFrame1, 1) instead. This is the function that actually calls SetChatWindowLocked().
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

Seerah is offline   Reply With Quote
Unread 09-15-13, 10:45 PM   #3
almty1
Premium Member
AddOn Author - Click to view addons
Join Date: Apr 2008
Posts: 13
That worked perfectly. Thanks so much.
almty1 is offline   Reply With Quote
Reply

Go BackWoWInterface » Developer Discussions » Lua/XML Help » SetChatWindowLocked not taking effect right away

Thread Tools
Display Modes

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