We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
So I have setup a ImGui::Table like this,
ImGui::Table
I can hover over any row and it highlights the entire row.
Now I want that when the user clicks on any row, I want to be able to access any column's data for that row. How can I achieve this?
I found this function ImGui::TableGetHoveredColumn() but this gets me current hovered column not row.
ImGui::TableGetHoveredColumn()
The text was updated successfully, but these errors were encountered:
I cannot understand your question.
You can use ImGui::Selectable() with the ImGuiSelectableFlags_SpanAllColumns flag in each row to tell when a row is clicked.
ImGui::Selectable()
ImGuiSelectableFlags_SpanAllColumns
Sorry, something went wrong.
No branches or pull requests
So I have setup a
![2022-03-29-16-02.png](https://camo.githubusercontent.com/27fd74c8e7285d8b0c2e1e2b15d24d03e29e3f21f31b78d964de1b8618accc38/68747470733a2f2f692e706f7374696d672e63632f353071705242365a2f323032322d30332d32392d31362d30322e706e67)
ImGui::Table
like this,I can hover over any row and it highlights the entire row.
Now I want that when the user clicks on any row, I want to be able to access any column's data for that row. How can I achieve this?
I found this function
ImGui::TableGetHoveredColumn()
but this gets me current hovered column not row.The text was updated successfully, but these errors were encountered: