MDI applications lazarus / 31-LCL ---------------------------------------------------------------------- Andyk · 2012-04-09 11:04 Most of my apps are MDI, its pretty difficult to make a complex design application using SDI. The problem is that the LCL form doesn't have the MDIchildren list that is required to organise and maintain the child windows. How difficult would it be to implement the list? I did start to try and alter the forms unit in the LCL to implement it, but the LCL package doesn't give the option to recompile. Whats the best way to do this? ---------------------------------------------------------------------- felipemdc · 2012-04-09 11:24 Quote from: Andyk on April 09, 2012, 01:04:14 pmI did start to try and alter the forms unit in the LCL to implement it, but the LCL package doesn't give the option to recompile. You don't have to manually rebuild the LCL. It will check if you modifyed any files from the LCL and if you did, then it will automatically rebuild the LCL when you build any project that uses it, like a test program. ---------------------------------------------------------------------- marcov · 2012-04-09 11:49 Quote from: Andyk on April 09, 2012, 01:04:14 pmHow difficult would it be to implement the list? Afaik Zeljan was working on this, and had it largely done for QT, and some generic support was added to the 0.9.31/1.0 branch. The implementation for other widgetsets (most notably win32/64 which has native support for it) still must be done. ---------------------------------------------------------------------- Bart · 2012-04-09 12:11 You could alternatively use a tabbed document interface? Bart ---------------------------------------------------------------------- Andyk · 2012-04-09 12:51 Quote from: Bart on April 09, 2012, 02:11:11 pmYou could alternatively use a tabbed document interface? Bart A tabbed document interface is no use when there are several different displays of the same data that all interact with each other and you need see how they all change wrt to real time user interactions. Thanks for the replies guys, I'll have another crack at it. ---------------------------------------------------------------------- joseme · 2012-04-09 14:24 Has anybody used Multidoc, from Patrick Chevalley? I did not have time for trying it myself. If it works, may be the solution for Andyk. ---------------------------------------------------------------------- jwdietrich · 2012-04-09 15:05 Don't forget that MDI impedes cross-platform development. MDI is a prevalent paradigm on Windows, but rare on Linux and unusual on Mac OS X. ---------------------------------------------------------------------- zeljko · 2012-04-09 15:58 Works (in real world production) with qtlcl on Linux, Windows and MacOSX. MDI emulator is ready for non-mdi ws (gtk2,carbon,cocoa) and it basically works, but problem is standard bounding rect of fsMDIChild which should return and set bounding rect of emulated container, not for fsMDIChild itself. Win32 should have native mdi support, but that part needs to be written and tested (LCL interface is ready for this). ---------------------------------------------------------------------- jwdietrich · 2012-04-10 11:35 Quote from: zeljko on April 09, 2012, 05:58:17 pmWorks (in real world production) with qtlcl on Linux, Windows and MacOSX. It may work, but it will be annoying to Mac users. ---------------------------------------------------------------------- LA.Center · 2012-04-10 17:37 MDI design is considered obsolete by many, Tabbed Window design would be the way I would go. ---------------------------------------------------------------------- Andyk · 2012-04-10 19:30 Quote from: jwdietrich on April 10, 2012, 01:35:21 pmQuote from: zeljko on April 09, 2012, 05:58:17 pmWorks (in real world production) with qtlcl on Linux, Windows and MacOSX. It may work, but it will be annoying to Mac users. That's probably why there are virtually zilch mainstream EDA applications for MAC. ---------------------------------------------------------------------- marcov · 2012-04-10 20:25 Quote from: plusplus on April 10, 2012, 07:37:52 pmMDI design is considered obsolete by many, Tabbed Window design would be the way I would go. As Andyk already stated, Tabbed Window doesn't cover all cases. E.g. think of systems where MDI is used by users to arrange their own "cockpit" view of gauges etc. So before doling out this kind of "advise" please ask for details first.