You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/TODO.txt
-1
Original file line number
Diff line number
Diff line change
@@ -214,7 +214,6 @@ It's mostly a bunch of personal notes, probably incomplete. Feel free to query i
214
214
- tooltip: tooltips with delay timers? or general timer policy? (instantaneous vs timed): IsItemHovered() with timer + implicit aabb-id for items with no ID. (#1485)
215
215
- tooltip: drag tooltip hovering over source widget with IsItemHovered/SetTooltip flickers.
216
216
217
-
- menus: calling BeginMenu() twice with a same name doesn't append as Begin() does for regular windows (#1207)
218
217
- menus: menu bars inside modal windows are acting weird.
219
218
- status-bar: add a per-window status bar helper similar to what menu-bar does.
220
219
- shortcuts: local-style shortcut api, e.g. parse "&Save"
// Sub-menus are ChildWindow so that mouse can be hovering across them (otherwise top-most popup menu would steal focus and not allow hovering on parent menu)
6229
+
if (window->Flags & (ImGuiWindowFlags_Popup|ImGuiWindowFlags_ChildMenu))
6230
+
flags |= ImGuiWindowFlags_ChildWindow;
6231
+
6232
+
if (g.RenderedMenusId.contains(id))
6233
+
{
6234
+
// Menu with same ID was already created - append to it.
6235
+
if (menu_is_open)
6236
+
menu_is_open = BeginPopupEx(id, flags); // menu_is_open can be 'false' when the popup is completely clipped (e.g. zero size display)
6237
+
if (!menu_is_open)
6238
+
g.NextWindowData.ClearFlags(); // We behave like Begin() and need to consume those values
6239
+
return menu_is_open;
6240
+
}
6241
+
else
6242
+
{
6243
+
g.RenderedMenusId.push_back(id); // Tag menu as used. Next time BeginMenu() with same ID is called it will append to existing menu.
// Sub-menus are ChildWindow so that mouse can be hovering across them (otherwise top-most popup menu would steal focus and not allow hovering on parent menu)
0 commit comments