Thread: Copy Tooltip
View Single Post
01/30/15, 09:11 PM   #5
circonian
AddOn Author - Click to view addons
Join Date: May 2014
Posts: 613
Thank you for the help Garkin, looking at miniMap helped.

I was just making a stupid mistake and didn't realize it. I wasn't calling the creator(..) in the correct spot. I was doing this:
Lua Code:
  1. tCreator.creator(mapPinData)
  2. ...
  3. rowControl:SetHandler("OnMouseEnter", function(...)
  4.    ...
  5.    InitializeTooltip(tooltip, rowControl, BOTTOMLEFT, 20, 0, TOPRIGHT)
  6.    ...
  7. end)

Instead of doing it inside the SetHandler:
Lua Code:
  1. rowControl:SetHandler("OnMouseEnter", function(...)
  2.    ...
  3.    InitializeTooltip(tooltip, rowControl, BOTTOMLEFT, 20, 0, TOPRIGHT)
  4.    ...
  5.    tCreator.creator(mapPinData)
  6. end)
  Reply With Quote