ocornut / imgui

Dear ImGui: Bloat-free Graphical User interface for C++ with minimal dependencies
MIT License
58.87k stars 10.05k forks source link

Are angled headers reorderable? #7632

Open dstromberg opened 2 months ago

dstromberg commented 2 months ago

Version/Branch of Dear ImGui:

v1.90.6 WIP

Back-ends:

GLFW (wasm)

Compiler, OS:

Linux + Emscripten emcc 3.1.59

Full config/build information:

No response

Details:

My Issue/Question:

I would like to combine the use of reorderable columns with angled column headers.

What I see with angled headers is highlightable column headers, but the columns don't move if I try to drag them - when using ImGui::TableAngledHeadersRow();

However, if I change from ImGui::TableAngledHeadersRow(); to ImGui::TableHeadersRow(); then I can drag columns.

Is this a known issue? Is it a yet-to-be-implemented feature?

Screenshots/Video:

screenshot

Minimal, Complete and Verifiable Example code:

My smallish project is at https://stromberg.dnsalias.org/svn/to-table3/trunk/

And you can see a runnable version of the project at https://stromberg.dnsalias.org/~dstromberg/WebGui/imgui.html

ocornut commented 2 months ago

It's a known issue, some features are not accessible from the angled header row. But you can submit a a regular TableHeadersRow() below TableAngledHeadersRow(). The cells will be empty but will allow those interactions to occur.