Skip to content
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

Columns: Disable dragging individual columns #1204

Closed
DucaRii opened this issue Jun 27, 2017 · 4 comments
Closed

Columns: Disable dragging individual columns #1204

DucaRii opened this issue Jun 27, 2017 · 4 comments

Comments

@DucaRii
Copy link
Contributor

DucaRii commented Jun 27, 2017

Is there a possibility to disable the Option to move the column line in the middle ?

Help greatly appreciated :)

MFG

@ocornut
Copy link
Owner

ocornut commented Jun 28, 2017

Sorry this isn't possible at the moment. Columns are due for a big reoverhaul and this will be eventually added.
Right now if you disable the borders (bool border = false), the user won't be able to resize the columns.

@ocornut ocornut changed the title dont move columns Columns: Disable dragging individual columns Jul 9, 2017
@Jeffmagma
Copy link

oh hey it's ducarii
also, has this been added yet?

@ocornut
Copy link
Owner

ocornut commented Apr 8, 2019

The internal api BeginColumns() and its data structures are allowing ImGuiColumnsFlags_NoResize to be set on individual column but none of this is properly exposed. If inside a BeginColumns() block you set window->DC.ColumnsSet->Columns[N].Flags |= ImGuiColumnsFlags_NoResize you can technically do that. Nothing else is touching this at the moment.

I am actually scheduled to finally be looking at table/columns from this month so there's hope that the system will finally be redone eventually :)

@ocornut
Copy link
Owner

ocornut commented Aug 27, 2020

Closing this now.

  • FYI Tables have such feature exposed in the public API.
  • Columns also have the ImGuiColumnsFlags_NoResize flag but it's a bit verbose to set it (as mentioned above) but we're going to eventually just make Columns API as legacy.

@ocornut ocornut closed this as completed Aug 27, 2020
ocornut added a commit that referenced this issue Nov 18, 2020
…ColumnFlags_*. (#125, #513, #913, #1204, #1444, #2142, #2707)

Affected: ImGuiColumnsFlags_None, ImGuiColumnsFlags_NoBorder, ImGuiColumnsFlags_NoResize, ImGuiColumnsFlags_NoPreserveWidths, ImGuiColumnsFlags_NoForceWithinWindow, ImGuiColumnsFlags_GrowParentContentsSize. Added redirection enums. Did not add redirection type.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants