imgui icon indicating copy to clipboard operation
imgui copied to clipboard

Missing row highlight on hover

Open eabase opened this issue 9 months ago • 1 comments

Version/Branch of Dear ImGui:

1.91.9

Back-ends:

imgui_impl_win32_dx12.cpp

Compiler, OS:

Windows-11

Full config/build information:

19190

Details:

Looking to highlight both rows and columns in a table, I found in the "Angled headers" demo, the settings for ImGuiTableFlags_HighlightHoveredColumn (from imgiu.h). But where is the equivalent for Rows?

Screenshots/Video:

na

Minimal, Complete and Verifiable Example code:

na

Related Tickets/References:

  • https://github.com/ocornut/imgui/issues/4577
  • https://github.com/ocornut/imgui/issues/6588

eabase avatar Mar 18 '25 07:03 eabase

ImGuiTableFlags_HighlightHoveredColumn (added in 1.90) currently only highlight the header row so there's no exact equivalent for row since there's no "header column". But the earlier should IMHO be redesigned and we may need something else than a flag.

  • Column highlight : "None" or "Header/first rows" or "All rows"
  • Row highlight : "None" or "N columns" or "All columns on non-headers rows" (and maybe "All columns on all rows", not sure if that's needed)

So we basically need an API design for this + be considerate that contrary to "hovered column", "hovered row" would be lagging by one frame so this may be problematic for some apps.

ocornut avatar Nov 24 '25 16:11 ocornut