Open hiiamboris opened 4 years ago
For those who are too young to remember MDI, this is how MS tried to solve it. Many other approaches exist as well. None are universally good. It seems best to do this the simplest way possible, by building a system that allows you to declare window relationships, handle events for them based on that, and use plain old windows for everything. Then we can make toolboxes, file pickers, plugins for apps, and have a well defined API for coordinating them.
Drag and drop is another subsystem to consider here, and breaking things apart means it can work across apps as well, like file dragging in an OS.
In the current build this is a bit crash-prone, but it kinda works.
view [p: panel [] do [append p/pane layout [button]]]
Currently it gives no advantages, but I can imagine a few separate windows being dragged as one, and being closed/minimized/hidden as soon as the parent window is closed/minimized/hidden.
What would be the best way to handle the above code?