FriendsMicroButton:HookScript("OnEnter", function()
GameTooltip:SetAnchor(myFrame, tooltipAnchor)
end)
untested but you get the jist.
if you add a line, just call GameTooltip:Show() and it will readjust its size.
if you want it to show on your frame when you mouse over your frame, then you have to write it on its own.
in one of my addons, i did it as so...
Code:
GameTooltip:ClearLines()
GameTooltip:SetOwner(Battlemaster.frame, "ANCHOR_NONE")
GameTooltip:ClearAllPoints()
GameTooltip:SetPoint("TOPLEFT", Battlemaster.frame, "TOPRIGHT")
GameTooltip:AddDoubleLine()
GameTooltip:AddDoubleLine()
GameTooltip:AddDoubleLine()
GameTooltip:Show()
though i think :SetOwner() goes ahead and clears the lines, but you MUST use SetOwner( as i recall), i just didnt like the preset anchors, so i cleared the points and set it myself