|
Hello everyone,
I tried to implement a little treeview like editor.
I have problems with sizing the components. Sometimes components completely disappear or get squeezed or dont fill the space they should have at least. Buttons for example dont even have the size they need to show its own label. Also the Textviews dont use the whole space to fill the frame vertically or horizontally (see picture attached first textview). When an element grows which is ok then components of the some HBox grow also which is not intended. Id rather have minimum values or what they need. So in the end, Im trying to make this look uniform, like a treeview of table but with complex content.
Right now I have a structure like this:
content = I/B | VBox( more content ) = textview | = editfield | Button | textview = Button | VBox ( content | content ) = ...more complex where the separator | means that the components are side by side in an HBox
So what would you do? What types you suggest to use? Can this be done with a treeview or a table? if yes how so? I tried to adapt treeview (because there is already support for drag and drop, I think) but the drawing gets hard to implement it seems. And tables I have not yet understood fully.
Thanks a lot for help
michael
/*language right now is python*/
| Attachments: |

treeview_editor.png [ 17.22 KiB | Viewed 189 times ]
|
|