Quantcast SetChatWindowLocked not taking effect right away - WoWInterface
Thread Tools Display Modes
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
  Reply With Quote
09-15-13, 10:24 PM   #2
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,250
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

  Reply With Quote
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.
  Reply With Quote

WoWInterface » 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