[Lazarus] Wich is the right way to MVC on LAzarus

Graeme Geldenhuys graemeg.lists at gmail.com
Tue Feb 19 08:21:36 CET 2008


> I would like to know which is the right way to follow MVC pattern and
> OOP on Lazarus/Free Pascal.

That's a very open ended question... MVC, MVP, MGM etc are all design
patterns. They help to keep you business classes and GUI code
separate.

I don't use MVC, but rather Model-GUI-Mediator (MGM).  For me, it's
more geared towards todays more intelligent GUI toolkits - taking
advantage of it's built-in event handling. It's also very easy to
implement. I have implemented MGM using Lazarus's LCL with tiOPF. I
have also ported that implementation to fpGUI with tiOPF.  Source code
and examples are available for both in the following SubVersion
repositories....

tiOPF v2:  http://www.tiopf.com
fpGUI:  http://opensoft.homeip.net/fpgui/


For more information about Model-GUI-Mediator have a look at:
  http://www.atug.com/andypatterns/mgm.htm


Regards,
  - Graeme -


_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/



More information about the Lazarus mailing list