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
I have a problem with "BeginPopupContextItem", the context menu does not appear.
So, I have try to debug, but I'm not sure to understand exactly what is happening.
Here is the code of the OpenPopup :
void ImGui::OpenPopup(const char* str_id)
{
ImGuiState& g = *GImGui;
ImGuiWindow* window = g.CurrentWindow;
ImGuiID id = window->GetID(str_id);
int current_stack_size = g.CurrentPopupStack.Size;
ImGuiPopupRef popup_ref = ImGuiPopupRef(id, window, window->GetID("##menus"), g.IO.MousePos); // Tagged as new ref because constructor sets Window to NULL (we are passing the ParentWindow info here)
if (g.OpenedPopupStack.Size < current_stack_size + 1)
g.OpenedPopupStack.push_back(popup_ref);
else if (g.OpenedPopupStack[current_stack_size].PopupID != id)
{
g.OpenedPopupStack.resize(current_stack_size+1);
g.OpenedPopupStack[current_stack_size] = popup_ref;
}
}
At the end, you notice that the last block simply "close" the current popup... it is my problem !
Where :
"OpenedPopupStack" size = 1
"current_stack_size" = 0
Do you know how I can track the problem ? Is there another popup opened somewhere ?
The text was updated successfully, but these errors were encountered:
Hi,
I have a problem with "BeginPopupContextItem", the context menu does not appear.
So, I have try to debug, but I'm not sure to understand exactly what is happening.
Here is the code of the OpenPopup :
At the end, you notice that the last block simply "close" the current popup... it is my problem !
Where :
"OpenedPopupStack" size = 1
"current_stack_size" = 0
Do you know how I can track the problem ? Is there another popup opened somewhere ?
The text was updated successfully, but these errors were encountered: