Hi,
Lua Code:
local ADDON = ...
local function Button_OnClick(rowline, name, button)
print("Never arrives here")
end
local LibQTip = LibStub('LibQTip-1.0')
local ldb = LibStub:GetLibrary("LibDataBroker-1.1")
local dataobj = ldb:NewDataObject(ADDON, {
type = "data source",
icon = "Interface\\Addons\\"..ADDON.."\\icon.tga",
text = "-"
})
local function anchor_OnEnter(self)
local row,col
local tooltip = LibQTip:Acquire(ADDON.."tip", 4, "LEFT", "LEFT", "LEFT","LEFT")
self.tooltip = tooltip
tooltip:SmartAnchorTo(self)
row,col = tooltip:AddHeader()
tooltip:SetCell(row,1,ADDON,"LEFT",4)
row,col = tooltip:AddLine("var1","var2","var3","var4")
tooltip:SetLineScript(row, 'OnMouseDown', Button_OnClick, "var1")
tooltip:SetHighlightTexture(1,1,0,.2)
row,col = tooltip:Show()
tooltip:SetScript("OnLeave", function(self)
self:Release()
tooltip = nil
print("Release tooltip")
end)
end
dataobj.OnEnter = function(self)
anchor_OnEnter(self)
end
dataobj.OnLeave = function(self)
print("Leaving/Hiding broker frame")
-- Null operation: Some LDB displays get cranky if this method is missing.
end
The only print() that triggers when I mouse over the line with scripts is:
Can you explain better what you mean by:
The SetLineScript sets an OnEnter for the row highlight frame which posts an OnLeave to your data opbject.
I didn't find any references of this highlight frame in the libqtip docs.
And I really dont understand what I am doing wrong because all the others addons I am looking seems so similar to mine ... The only differences is that the others works as expected
And it is really frustrating
)
Thanks so much for any help
)