View Single Post
11-04-18, 11:33 PM   #1
myrroddin
A Pyroguard Emberseer
 
myrroddin's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 1,240
Cycle through tabs in a chat window

Is there a way to programmatically cycle through the chat tabs in a chatframe? For example, in my ChatFrame1, I have General, Log, Guild, but what if you don't know how many tabs a user has, or what the tab names are?

I've gone through the FrameXML to look for clues, but so far haven't found anything.

EDIT: I don't need the tab names per se. Rather, I am trying to clear all the text in each tab of each chatframe.
Lua Code:
  1. for i = 1, NUM_CHAT_WINDOWS do
  2.     local window = _G["ChatFrame"..i]
  3.     window:Clear() -- this clears the first window in ChatFrame1, ChatFrame2, etc
  4.     -- great, now get the next tab, but how?
  5. end

Last edited by myrroddin : 11-05-18 at 12:25 AM.
  Reply With Quote