Marc Santhoff wrote: > Hi, > > is there something like Javas layout managers available for Lazarus? > > I think a simple TBorderLayout would suffice, although I'd like to know > other approaches that are similarly easy to use, especially when writing > form building code by hand. Or maybe a tutorial explaning how to use > Lazarus' standard classes in an efficient way. > > The only thing I found so far is the widgetgrid from MSEgui - that could > be a starting point. > > TIA, > Marc
I'm working on a layout manager called MigLayout. Primary it's for fpGUI, but the way I am structuring the code (including the original Java code) is so you can implement a few abstract classes to support new widget sets. MigLayout is pretty awesome! I suggest you download the sample application and play around with it. You can view the source of each demo screen to see how it's constructed. It also has this need feature called debug mode, where it draws red rectangles around components to show you how they relate. Oh, and you only need one layout manager for the whole screen. No layout manager inside a layout manager (panel in a panel) is needed. :) MigLayout is one layout manager that can implement any interface. That was the whole challenge of designing MigLayout. They reconstructed may GUI's from other applications to prove that it's possible. Building GUI's from code is it's strong point, and extremely easy and flexible. Home page: http://www.miglayout.com/ Introducing MigLayout http://www.javalobby.org/articles/miglayout/ I hope to complete the MigLayout implementation for fpGUI by Q4 this year. If anybody wants to help with the core implementation (non-gui part), it might be ready sooner. I'll obviously try and create a LCL layer as well. Regards, - Graeme - _______________________________________________________ fpGUI - a cross-platform GUI toolkit using Free Pascal http://opensoft.homeip.net/fpgui/ _______________________________________________ Lazarus mailing list [email protected] http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
