WoW:API ChatFrame AddChannel: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
({{framexmlfunc|FrameXML/ChatFrame.lua}} __NOTOC__)
Line 1: Line 1:
This method is activating a previously join chatchannel.
{{framexmlfunc|FrameXML/ChatFrame.lua}} __NOTOC__


<!-- begin code -->
  ChatFrame_AddChannel(chatFrame, 'channelName');
  ChatFrame_AddChannel(chatFrame, 'channelName');
<!-- end code -->
 
Order a chat frame to display a previously-joined chat channel
 


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


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


Line 18: Line 19:


== Example ==
== Example ==
<!-- begin code -->
ChatFrame_AddChannel(DEFAULT_CHAT_FRAME,'test');
<!-- end code -->


----
ChatFrame_AddChannel(DEFAULT_CHAT_FRAME, "test");
{{WoW API}}

Revision as of 13:41, 5 September 2006

WoW API < ChatFrame:AddChannel

"I" iconThis function is implemented in Lua here FrameXML/ChatFrame.lua.
ChatFrame_AddChannel(chatFrame, 'channelName');

Order a chat frame to display a previously-joined chat channel


Parameters

Arguments

(chatFrame, 'channelName')
chatFrame
Object - the chat frame to display the channel in
channelName
String - The name of the chatchannel to activate.

Returns

retCode
retCode
Number - ?

Example

ChatFrame_AddChannel(DEFAULT_CHAT_FRAME, "test");