tkd icon indicating copy to clipboard operation
tkd copied to clipboard

MDI Support

Open alexiusacademia opened this issue 6 years ago • 3 comments
trafficstars

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

alexiusacademia avatar Mar 02 '19 09:03 alexiusacademia

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.

nomad-software avatar Mar 02 '19 10:03 nomad-software

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

alexiusacademia avatar Mar 02 '19 10:03 alexiusacademia

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

Shadowblitz16 avatar Sep 18 '19 21:09 Shadowblitz16