function do_OnEnter(frame)
local tooltip = LibQTip:Acquire("ToolTipName")
tooltip:SmartAnchorTo(frame)
tooltip:SetAutoHideDelay(0.1, frame)
tooltip:EnableMouse(true)
-- code to fill tooltip here
tooltip:Show()
end
The tootip will auto-hide shortly after leaving, so no OnLeave (or an empty function dummy) is needed for the data object.
Thank you for creating libQtip.
Used it for the first time today and worked like a charm. :)
Have one question though.
Am not sure how to use UpdateScrolling(value).
Tested it with different values like 1 and 10.
And then I get a scroll bar (though the scroll bar partly covers the last column in the tooltip).
Also tested it with value 100.
And then I get no scroll bar.
And the toolptip I created contains (during the test) about 70 lines with a font size of 10.
That was it. I set the UpdateScrolling(value) before filling the tooltip.
Reversed that order, data first, UpdateScrolling(value) later.
Worked :)
And I want a value.
Have a tooltip with my (online) guild members and am in a guild with 900+ members.
Usually 70 to 100+ members online.
And I don't want the tooltip to take up a big part of the screen.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
The tootip will auto-hide shortly after leaving, so no OnLeave (or an empty function dummy) is needed for the data object.
That is a much easier solution.
Regards
Jaxom
Used it for the first time today and worked like a charm. :)
Have one question though.
Am not sure how to use UpdateScrolling(value).
Tested it with different values like 1 and 10.
And then I get a scroll bar (though the scroll bar partly covers the last column in the tooltip).
Also tested it with value 100.
And then I get no scroll bar.
And the toolptip I created contains (during the test) about 70 lines with a font size of 10.
I am confused :confused: :p
That was it. I set the UpdateScrolling(value) before filling the tooltip.
Reversed that order, data first, UpdateScrolling(value) later.
Worked :)
And I want a value.
Have a tooltip with my (online) guild members and am in a guild with 900+ members.
Usually 70 to 100+ members online.
And I don't want the tooltip to take up a big part of the screen.