Columns: Disable dragging individual columns #1204

Closed
opened 2017-06-27 14:40:51 +00:00 by DucaRii · 4 comments
DucaRii commented 2017-06-27 14:40:51 +00:00 (Migrated from github.com)

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

Help greatly appreciated :)

MFG

Is there a possibility to disable the Option to move the column line in the middle ? Help greatly appreciated :) MFG
ocornut commented 2017-06-28 19:49:02 +00:00 (Migrated from github.com)

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.

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.
Jeffmagma commented 2019-04-06 21:34:06 +00:00 (Migrated from github.com)

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

oh hey it's ducarii also, has this been added yet?
ocornut commented 2019-04-08 10:08:24 +00:00 (Migrated from github.com)

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 :)

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 commented 2020-08-27 15:58:34 +00:00 (Migrated from github.com)

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.
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.
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ocornut/imgui#1204
No description provided.