-
-
Notifications
You must be signed in to change notification settings - Fork 10.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple ID Error on Button Behavior #8030
Comments
That's an interesting use case. I think it this specific case indeed did work before (even if it should be illegal). I think you can use single button with both |
You can surround this block of code with: PushItemFlag(ImGuiItemFlags_AllowDuplicateId, true);
ButtonBehavior(...)
ButtonBehavior(...)
PopItemFlag(); |
It legally fixed like this:
It gathers if mouseClicked and then;
It solved my problem but if you consider to investigate, Issue can be open remain. |
I have investigated this and deemed that it was a legit case where a false positive would be emitted. |
Version/Branch of Dear ImGui:
Branch: docking, Commit: 7937732
Back-ends:
imgui_impl_opengl3.cpp
Compiler, OS:
macOS + Clang 12, GCC, Windows + MSVC
Full config/build information:
No response
Details:
My Issue/Question:
Hi,
I was getting the click behavior using two ButtonBehavior(), one left click (with ImGuiButtonFlags_MouseButtonLeft flag) and one right click (with ImGuiButtonFlags_MouseButtonRight flag).
However, I get the following image with the io.ConfigDebugDetectIdConflicts added since commit number d1ea03b.
Here I have a basic situation and two questions.
I think the io.ConfigDebugDetectIdConflicts parameter is not implemented because it is still in development. Therefore I cannot close this error ("Unless I patch it manually"). Will it be added???
Secondly, I use two ButtonBehaviour's to achieve this behavior. I tried different ways:
So, how can I encourage with this issue?
Screenshots/Video:
No response
Minimal, Complete and Verifiable Example code:
It is fork of SDRPlusPlus of AlexandreRouma,
Code is on https://github.com/Zaryob/SDRPlusPlus
The text was updated successfully, but these errors were encountered: