WoW:API ChatFrame AddChannel: Difference between revisions

m
Move page script moved page API ChatFrame AddChannel to WoW:API ChatFrame AddChannel without leaving a redirect
mNo edit summary
m (Move page script moved page API ChatFrame AddChannel to WoW:API ChatFrame AddChannel without leaving a redirect)
 
(5 intermediate revisions by 5 users not shown)
Line 1: Line 1:
This method is activating a previously join chatchannel.
{{framexmlfunc|FrameXML/ChatFrame.lua}}
 
ChatFrame_AddChannel(chatFrame, 'channelName')
 
Order a chat frame to display a previously-joined chat channel. 


<!-- begin code -->
ChatFrame_AddChannel(chatFrame, 'channelName');
<!-- end code -->


== Parameters ==
== Parameters ==
Line 9: Line 10:
:(chatFrame, 'channelName')
:(chatFrame, 'channelName')


:;chatFrame : The name of the chat frame
:;chatFrame
:;channelName : String - The name of the chatchannel to activate.
:: Object - The chat frame to display the channel in. Some ex
:;channelName
:: String - The name of the chatchannel to activate.


=== Returns ===
=== Returns ===
:retCode
:nil


:;retCode : Number - ?
== Example ==


== Example ==
  ChatFrame_AddChannel(DEFAULT_CHAT_FRAME, "test");
<!-- begin code -->
ChatFrame_AddChannel(SELECTED_CHAT_FRAME, "ErrorInfo");
  ChatFrame_AddChannel(DEFAULT_CHAT_FRAME,'test');
ChatFrame_AddChannel(ChatFrame1, "AnotherChannel");
<!-- end code -->


[[Category:API Functions|ChatFrame AddChannel]]
====chatFrame====
[[Category:API Chat Functions|ChatFrame AddChannel]]
<code>DEFAULT_CHAT_FRAME</code> - Adds the channel to the default chat window.<br />
<code>SELECTED_CHAT_FRAME</code> - Adds the channel in the chat window with focus ( the front window ).<br />
<code>ChatFrameX</code> - Where X is an int from 1 to 10. Seems to add the channel to any chat window, where X=1 is the left-most window.<br />
2,434

edits