Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2008-05

layout managers

4 messages · 4 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Marc Santhoff

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

Reply by email

Graeme Geldenhuys
to Marc Santhoff
Marc Santhoff wrote 14 lines
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/

Reply by email

Martin Schreiber
to Marc Santhoff: is there something like Javas layout managers available for Lazarus? I think a simple…
Marc Santhoff wrote 12 lines
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.

twidgetgrid is a tcustomgrid descendent where every inserted widget builds a data column. The inserted widgets with their event properties are working as if they were placed into a form. This makes it easy to build complex data grids with buttons, checkboxes, images, dropdown list edits, memos and the like. There is tdbwidgetgrid, a descendant with dbgrid functionality. The MSEgui layout manager component is tlayouter from tab 'Widget'.

Martin

Reply by email