wxToolTip(3)
wxToolTip π¬β¨
okay bestie, this is an Erlang module, and it's the lil guy that holds all the info about a tooltip that's attached to a window π (peep wxWindow:setToolTip/2 if you wanna know how the window got one in the first place).
πΈ NAME πΈ
wxToolTip β this class holds information about a tooltip associated with a window (see wxWindow:setToolTip/2). no cap, that's literally the whole job π
β¨ DESCRIPTION β¨
so the way this works is there are four static methods that let you change tooltip behaviour globally, like for the entire app, not just one lil window:
enable/1setDelay/1wxToolTip::SetAutoPop()(not implemented in wx) πwxToolTip::SetReshow()(not implemented in wx) π
two of them are giving "announced but never showed up" energy, we move on.
also, if you want the official wxWidgets lore: wxWidgets docs: wxToolTip π¦
π DATA TYPES π
wxToolTip() :: wx:wx_object().
like yeah it's a wx_object, it's an object, that's the vibe π
π FUNCTIONS π
destroy(This :: wxToolTip()) -> ok.
Destroys the object. bye bestie, we hardly knew ye π«Ά
enable(Flag) -> ok when Flag :: boolean().
Enable or disable tooltips globally πβ¨ β one switch, whole app.
Note: May not be supported on all platforms (eg. wxCocoa). so likeβ¦ don't come for me if it doesn't do anything there π
getTip(This) -> unicode:charlist() when This :: wxToolTip().
Get the tooltip text. just hands you the string, no drama π
getWindow(This) -> wxWindow:wxWindow() when This :: wxToolTip().
Get the associated window β the window this tooltip is literally attached to π«
new(Tip) -> wxToolTip() when Tip :: unicode:chardata().
Constructor π new tooltip, who dis
setDelay(Msecs) -> ok when Msecs :: integer().
Set the delay after which the tooltip appears β³ β basically "how long do I have to hover before you show up, bestie?"
Note: May not be supported on all platforms. fr fr, platform-dependent, don't @ me π
setTip(This, Tip) -> ok when This :: wxToolTip(), Tip :: unicode:chardata().
Set the tooltip text π β the glow-up but for words.
and that's the whole page, you ate it, iconic, periodt π πβ
Ericsson AB Β· wx 2.6 Β· wxToolTip(3) β mwah, ty for reading, ily, go hover over something π¦π
π¦ where this page comes from
- ubuntu stonking: erlang-doc 1:29.0.6+dfsg-1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms