Missing ImGui Tables demo
dufferzafar opened this issue · 5 comments
Silly me. I thought Imtui was just rendering the ImGui demo directly! 😅
I looked at the code and with so many of the ImGui:: lines, i thought Line 43 was ImGui::ShowDemoWindow rather than ImTui::ShowDemoWindow
imtui/examples/ncurses0/main.cpp
Lines 22 to 45 in bd5a9f0
Anyway, I still feel we should update our demo to match v1.81 demo as much as possible.
Initial pass for adding "Tables & Columns" demo is now available on master. Probably needs some more refinements for proper display in the terminal
I had copy-pasted the code from imgui_demo.cpp to imtui_demo.cpp and got this working as well.
Glad that you pushed it to master though.
Probably needs some more refinements for proper display in the terminal
Yeah. The tables don't look that good. I was going to create a separate issue for that as well!
I'll list all issues that I found here:
- Borders & Backgrounds are not correctly applied. In the default example, rows should have alternating colors while the first two rows have same color, and then the next two rows have same.
- Toggling any of the borders like
ImGuiTableFlags_Borderstotally breaks the table view. - Columns can be resized, but the separator is not really visible. #28 mentions missing separator as well. In cases where the separator is visible, I feel it is "too thick"
This screenshot is from visidata - an ncurses application that i'm trying to partially recreate in C++. This is my ideal goal wrt columns. I think they just have a single character as a separator.




