hoffstadt / DearPyGui

Dear PyGui: A fast and powerful Graphical User Interface Toolkit for Python with minimal dependencies
https://dearpygui.readthedocs.io/en/latest/
MIT License
13.33k stars 694 forks source link

Resizable table rows #2310

Open giogina opened 8 months ago

giogina commented 8 months ago

Is your feature request related to a problem? Please describe. I've been using tables for constructing layouts more than anything else - having a resizable side panel in form of a table column is great. However, table rows don't seem to be resizable.

Describe the solution you'd like It would be great to be able to set table rows to be resizable - mostly for the purpose of having a resizable bottom panel in my window.

Describe alternatives you've considered Currently hacked something up with a long, thin button on the top of the lower table column which reacts to drag by adjusting the column heights. Not nearly as smooth as a table resize, and I can't figure out how to change the mouse button to indicate that it's drag-able.

v-ein commented 8 months ago

I don't think Dear ImGui supports that at the moment (see ticket #5553), and without support from ImGui, it's unlikely to be implemented in DPG.

2248 might help in future with indication of something being draggable.

2275 is going to add resizable child windows, which can probably be used together with tables or even replace tables in this scenario.