Closed sonoro1234 closed 1 month ago
The problem is that if ig.IsItemHovered() then ig.SetTooltip(v.file_name) end does not get called unless the tab is selected. How should I solve it?
Call it even when the tab is not selected?
bool open = BeginTabItem(...);
SetItemTooltip("your tooltip");
if (open)
{
..
EndTabItem();
}
So obvious, Thanks!!
Version/Branch of Dear ImGui:
Version 1.91.2 docking
Back-ends:
imgui_impl_glfw.cpp + imgui_impl_opengl.cpp
Compiler, OS:
windows 10 mingw-w64
Full config/build information:
No response
Details:
My Issue/Question:
I need a custom Tooltip behaviour for TabItems. Tabs get label from v.shrt_name but when hovering should show long file_name. This is the code.
The problem is that
if ig.IsItemHovered() then ig.SetTooltip(v.file_name) end
does not get called unless the tab is selected. How should I solve it?Screenshots/Video:
No response
Minimal, Complete and Verifiable Example code:
No response