View Single Post
07/08/14, 03:21 AM   #4
Harven
 
Harven's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 135
You can try iterting through the tooltip childs like that:
Lua Code:
  1. local function CheckChildren(control)
  2.     for i=1, control:GetNumChildren() do
  3.         local c = control:GetChild(i)
  4.         if c then
  5.             local type = c:GetType()
  6.             --do something, like GetText if the control is a CT_LABEL
  7.             CheckChildren(c)
  8.         end
  9.     end
  10. end
  11.  
  12. CheckChildren(PopupTooltip)

But if I remember correctly you will get nothing, like the controls in tooltips are some kind of special control filled by the client.
  Reply With Quote