mirror of
https://github.com/ocornut/imgui.git
synced 2026-11-10 19:03:30 +00:00
Columns: Disable dragging individual columns #1204
Labels
No labels
accidentally closed
android
backends
bug
building
clipper
coloredit
color spaces
cplusplus
data types
demo
disabled
doc
docking
dpi
drag drop
drawing/drawlist
dropped
dx12
enhancement
focus
font/text
gallery
help wanted
idle/power saving
ime
in progress
inputs
inputtext
internals
label/id and id stack
language bindings
layout
linux/bsd
menus
multi-contexts
multi-threading
multi-viewports
nav
news/info
opengl
optimization
osx/ios
overlap
plot/graph
popups
question
scrolling
selection
settings
sliders/drags
style
tables/columns
tabs
test wanted
tools
tooltips
tree
tricks & tips
useful widgets
vulkan
web
window pos/depth
window sizing
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ocornut/imgui#1204
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Is there a possibility to disable the Option to move the column line in the middle ?
Help greatly appreciated :)
MFG
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.oh hey it's ducarii
also, has this been added yet?
The internal api
BeginColumns()and its data structures are allowingImGuiColumnsFlags_NoResizeto be set on individual column but none of this is properly exposed. If inside aBeginColumns()block you setwindow->DC.ColumnsSet->Columns[N].Flags |= ImGuiColumnsFlags_NoResizeyou 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 :)
Closing this now.
ImGuiColumnsFlags_NoResizeflag but it's a bit verbose to set it (as mentioned above) but we're going to eventually just make Columns API as legacy.