-
-
Notifications
You must be signed in to change notification settings - Fork 10.2k
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
ImGui::Selectable works only for first item #1556
Labels
label/id and id stack
implicit identifiers, pushid(), id stack
Comments
What's the ID of all your selectables? Have you read the FAQ? Do you understand how the ID Stack works? |
You can always reproduce a minimal code example by calling the same functions with the same parameters. You would have found out that your parameters are probably the reason. |
ocornut
added a commit
that referenced
this issue
Sep 10, 2024
Also #74, #96, #480, #501, #647, #654, #719, #843, #894, #1057, #1173, #1390, #1414, #1556, #1768, #2041, #2116, #2330, #2475, #2562, #2667, #2807, #2885, #3102, #3375, #3526, #3964, #4008, #4070, #4158, #4172, #4199, #4375, #4395, #4471, #4548, #4612, #4631, #4657, #4796, #5210, #5303, #5360, #5393, #5533, #5692, #5707, #5729, #5773, #5787, #5884, #6046, #6093, #6186, #6223, #6364, #6387, #6567, #6692, #6724, #6939, #6984, #7246, #7270, #7375, #7421, #7434, #7472, #7581, #7724, #7926, #7937 and probably more.. Tagging to increase visibility!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://bitbucket.org/kamilklimek/tracy/src/30cc523634c3b8944e69ad5aa48194488d4ac4c6/server/TracyView.cpp?at=selectable-does-not-work&fileviewer=file-view-default#TracyView.cpp-4208
Could you please ivestigate code above. For some reason ImGui::Selectable returns true only for first item in each created TreeNode but ImGui::ItemIsClicked works always. I wasn't able to reproduce it on any minimal code sample or even on imgui demo, thats why I point out whole project, however I hope you will be able to run it.
How to reproduce
Compile and run 'standalone/build/win32/Tracy.sln'
Compile test
In application launched click "Connect"
Run tracy_test
Some data should start showing, click "Find Zone" button
In "Find Zone" window type "Test" and click "Find"
Expand TreeNode, click on first "Test function" and see that
if( ImGui::Selectable
hitsClick on second "Test function" and see that
if( ImGui::Selectable
does not hitDo the same for
if( ImGui::IsItemClicked() )
The text was updated successfully, but these errors were encountered: