-
-
Notifications
You must be signed in to change notification settings - Fork 10.5k
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
Tables: Is there a way to freeze a specific column? #4206
Comments
Hello, It's not currently possible but the Note that freezing generally goes hand to hand with using Interestingly, looking at your example I realize it would be nice to add a new column flag to hide the header label, so you could still benefit from using |
…dersRow() to not submit label for a column. (#4206)
Now added |
Even better would be the ability to freeze arbitrary columns, granted this would probably be a lot more difficult to implement, but could allow for some interesting use of tables. Potentially have a flag specifically for freezing an entire column outside of TableSetupScrollFreeze? |
The merging of draw calls relies on contiguous frozen blocks, and non-contiguous unfrozen section would requires multiple scrollbars and will probably make several other things more complex. I guess it is unlikely we allow arbitrary non-contiguous columns to be frozen this way. I'm looking at potentially freezing from the right and already that opens up a few new problems in terms of sizing constraints (right + left frozen columns can't overlap and must leave space for scrolling section, can't push each others etc.). |
I spent an hour trying to do this and identifying the changes that would be required.
I reckon it'll probably take a solid full day to do those safely and sanely but it should also improve the code quality of those two sections so it is quite desirable. Realistically this is not going to happen very soon but I'll get to it eventually. |
Sounds good to me, do poke me when/if it happens. |
Version/Branch of Dear ImGui:
Version: 1.82 WIP
Branch: docking
Back-end/Renderer/Compiler/OS
Back-ends: cimgui + bindbc-imgui, imgui_impl_sdl.cpp & custom OpenGL backend
Operating System: Windows
My Issue/Question:
I'm working on an editor for a 2D puppet animation format, and for a node tree in this editor I want the user to be able to toggle each Node in the puppet, I've decided to use Tables for this.
I seem to be unable to freeze/lock a specific column (the one with the visibility switches)
Is there a way to set a specific column as frozen or if not, how feasible would it be to allow that?
Screenshots/Video
Moving the scroll bar just scrolls the visibility icon
Standalone, minimal, complete and verifiable example: (see #2261)
The text was updated successfully, but these errors were encountered: