nomad-software / tkd

GUI toolkit for the D programming language based on Tcl/Tk
MIT License
117 stars 16 forks source link

MDI Support #48

Open alexiusacademia opened 5 years ago

alexiusacademia commented 5 years ago

Hi there, I would like to ask if MDI is supported by the library? If so, how can that be implemented? Is it using window.window?

One more is getting the width property of a Treeview object. I always get width=1. I am trying to position a window next to a treeview by getting the width property but I am having a problem. I attached a screenshot of the main window. I want a new dialog or window to appear next to the treeview so I took the width of the treeview using getWidth and then passed it to the window to be created using the setGeometry method but I always get 1 as the width.

The code for the project is available at Github

Help would be much appreciated. Thank you!

alt text

nomad-software commented 5 years ago

MDI is not currently supported as it's not implemented as a base widget. It can, however, be achieved by combining different Tk widgets in clever ways. Here is a pure Tcl/Tk version: https://wiki.tcl-lang.org/page/Another+MDI

It needs some thought and design to incorporate it into this library and unfortunately, I haven't got the time at the minute.

alexiusacademia commented 5 years ago

Thank you for clearing that up. Hope soon in the future it may have that feature. On the other hand, how about my other query about the size, or more specifically, the width of the treeview? Thanks

Shadowblitz16 commented 4 years ago

I would also like to have this. I am moving from C# winforms to D and I use MDI alot for game editors