-
-
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
ImGuiSelectableFlags_SpanAllColumns column separator not draggable #2341
Comments
Hello, I'll try to provide a more detailed answer later, but you should be able to use (At the moment I am considering changing the hovering system to actually make this the default behavior in particular for selectable and tree nodes.) |
|
Is there a better way to create a table where each cell can be double clicked but still have the hover and selection rectangles be drawn as a single rectangle (like the code in my first post)? Not sure if this is related to Here is what I have came up with:
but there are a couple issues with it: (which I could work around if there is no other way) 1). Seemingly, when hovering a cell a second hover rectangle is drawn on top with a different alpha value. I would be fine with that, but the first column doesn't get that second hover rectangle drawn on top. Can work around this by doing 2). Whenever a cell is double clicked, because of ImGuiSelectableFlags_SpanAllColumns, the first column will always be reported as double clicked as well as the cell that was actually double clicked. |
I'm actually working on columns/table at the moment and took note of this specific request. I believe one way to tackle that is to consider them as different Selectables but manually draw a rectangle covering the whole column. The new system would allow things such as displaying alternating background colors per row (odd/even) so we may as well provide the user will some controls to display selection information on a row-basis. |
Closing this as obsoleted by tables without should have no problem with this. |
Branch: docking (latest)
The column separator can only be dragged with the very few pixels at the top/bottom of the table.
The text was updated successfully, but these errors were encountered: